2022-06-02 20:46:40 +02:00
|
|
|
error[E0403]: the name `'a` is already used for a generic parameter in this item's generic parameters
|
2019-07-28 13:33:51 +01:00
|
|
|
--> $DIR/duplicate_lifetimes.rs:8:14
|
|
|
|
|
|
|
|
|
LL | fn g<$a, 'a>() {}
|
2022-06-02 20:46:40 +02:00
|
|
|
| ^^ already used
|
2019-07-28 13:33:51 +01:00
|
|
|
...
|
|
|
|
LL | m!('a);
|
2021-10-14 13:28:28 -05:00
|
|
|
| ------
|
2019-07-28 13:33:51 +01:00
|
|
|
| | |
|
2022-06-02 20:46:40 +02:00
|
|
|
| | first use of `'a`
|
2019-07-28 13:33:51 +01:00
|
|
|
| in this macro invocation
|
2019-12-16 15:56:47 +02:00
|
|
|
|
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-07-28 13:33:51 +01:00
|
|
|
|
2022-06-02 20:46:40 +02:00
|
|
|
error[E0403]: the name `'a` is already used for a generic parameter in this item's generic parameters
|
2019-07-28 13:33:51 +01:00
|
|
|
--> $DIR/duplicate_lifetimes.rs:13:14
|
|
|
|
|
|
|
|
|
LL | fn h<$a, 'a>() {}
|
2022-06-02 20:46:40 +02:00
|
|
|
| ^^ already used
|
2019-07-28 13:33:51 +01:00
|
|
|
...
|
|
|
|
LL | n!('a);
|
2021-10-14 13:28:28 -05:00
|
|
|
| ------
|
2019-07-28 13:33:51 +01:00
|
|
|
| | |
|
2022-06-02 20:46:40 +02:00
|
|
|
| | first use of `'a`
|
2019-07-28 13:33:51 +01:00
|
|
|
| in this macro invocation
|
2019-12-16 15:56:47 +02:00
|
|
|
|
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the macro `n` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-07-28 13:33:51 +01:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2022-06-02 20:46:40 +02:00
|
|
|
For more information about this error, try `rustc --explain E0403`.
|