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