]> git.proxmox.com Git - rustc.git/blame - src/test/ui/hygiene/duplicate_lifetimes.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / hygiene / duplicate_lifetimes.stderr
CommitLineData
416331ca
XL
1error[E0263]: lifetime name `'a` declared twice in the same scope
2 --> $DIR/duplicate_lifetimes.rs:8:14
3 |
4LL | fn g<$a, 'a>() {}
5 | ^^ declared twice
6...
7LL | m!('a);
8 | -------
9 | | |
10 | | previous declaration here
11 | in this macro invocation
74b04a01
XL
12 |
13 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
416331ca
XL
14
15error[E0263]: lifetime name `'a` declared twice in the same scope
16 --> $DIR/duplicate_lifetimes.rs:13:14
17 |
18LL | fn h<$a, 'a>() {}
19 | ^^ declared twice
20...
21LL | n!('a);
22 | -------
23 | | |
24 | | previous declaration here
25 | in this macro invocation
74b04a01
XL
26 |
27 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
416331ca
XL
28
29error: aborting due to 2 previous errors
30
31For more information about this error, try `rustc --explain E0263`.