]> git.proxmox.com Git - rustc.git/blob - tests/ui/hygiene/duplicate_lifetimes.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / hygiene / duplicate_lifetimes.stderr
1 error[E0403]: the name `'a` is already used for a generic parameter in this item's generic parameters
2 --> $DIR/duplicate_lifetimes.rs:8:14
3 |
4 LL | fn g<$a, 'a>() {}
5 | ^^ already used
6 ...
7 LL | m!('a);
8 | ------
9 | | |
10 | | first use of `'a`
11 | in this macro invocation
12 |
13 = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error[E0403]: the name `'a` is already used for a generic parameter in this item's generic parameters
16 --> $DIR/duplicate_lifetimes.rs:13:14
17 |
18 LL | fn h<$a, 'a>() {}
19 | ^^ already used
20 ...
21 LL | n!('a);
22 | ------
23 | | |
24 | | first use of `'a`
25 | in this macro invocation
26 |
27 = note: this error originates in the macro `n` (in Nightly builds, run with -Z macro-backtrace for more info)
28
29 error: aborting due to 2 previous errors
30
31 For more information about this error, try `rustc --explain E0403`.