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