fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
667 B27 linesraw
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
12
13error[E0263]: lifetime name `'a` declared twice in the same scope
14  --> $DIR/duplicate_lifetimes.rs:13:14
15   |
16LL |     fn h<$a, 'a>() {}
17   |              ^^ declared twice
18...
19LL | n!('a);
20   | -------
21   | |  |
22   | |  previous declaration here
23   | in this macro invocation
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0263`.