]>
Commit | Line | Data |
---|---|---|
923072b8 | 1 | error[E0403]: the name `'a` is already used for a generic parameter in this item's generic parameters |
416331ca XL |
2 | --> $DIR/duplicate_lifetimes.rs:8:14 |
3 | | | |
4 | LL | fn g<$a, 'a>() {} | |
923072b8 | 5 | | ^^ already used |
416331ca XL |
6 | ... |
7 | LL | m!('a); | |
c295e0f8 | 8 | | ------ |
416331ca | 9 | | | | |
923072b8 | 10 | | | first use of `'a` |
416331ca | 11 | | in this macro invocation |
74b04a01 | 12 | | |
17df50a5 | 13 | = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info) |
416331ca | 14 | |
923072b8 | 15 | error[E0403]: the name `'a` is already used for a generic parameter in this item's generic parameters |
416331ca XL |
16 | --> $DIR/duplicate_lifetimes.rs:13:14 |
17 | | | |
18 | LL | fn h<$a, 'a>() {} | |
923072b8 | 19 | | ^^ already used |
416331ca XL |
20 | ... |
21 | LL | n!('a); | |
c295e0f8 | 22 | | ------ |
416331ca | 23 | | | | |
923072b8 | 24 | | | first use of `'a` |
416331ca | 25 | | in this macro invocation |
74b04a01 | 26 | | |
17df50a5 | 27 | = note: this error originates in the macro `n` (in Nightly builds, run with -Z macro-backtrace for more info) |
416331ca XL |
28 | |
29 | error: aborting due to 2 previous errors | |
30 | ||
923072b8 | 31 | For more information about this error, try `rustc --explain E0403`. |