11warning: duplicate matcher binding
2- --> $DIR/macro-multiple-matcher-bindings.rs:11 :6
2+ --> $DIR/macro-multiple-matcher-bindings.rs:12 :6
33 |
44LL | ($a:ident, $a:ident) => {};
55 | ^^^^^^^^ ^^^^^^^^
66 |
7- = note: #[warn(duplicate_matcher_binding_name)] on by default
7+ note: lint level defined here
8+ --> $DIR/macro-multiple-matcher-bindings.rs:9:9
9+ |
10+ LL | #![warn(duplicate_matcher_binding_name)]
11+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
812 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
913 = note: for more information, see issue #57593 <https://github.com/rust-lang/rust/issues/57593>
1014
1115warning: duplicate matcher binding
12- --> $DIR/macro-multiple-matcher-bindings.rs:12 :6
16+ --> $DIR/macro-multiple-matcher-bindings.rs:13 :6
1317 |
1418LL | ($a:ident, $a:path) => {};
1519 | ^^^^^^^^ ^^^^^^^
@@ -18,7 +22,7 @@ LL | ($a:ident, $a:path) => {};
1822 = note: for more information, see issue #57593 <https://github.com/rust-lang/rust/issues/57593>
1923
2024warning: duplicate matcher binding
21- --> $DIR/macro-multiple-matcher-bindings.rs:21 :6
25+ --> $DIR/macro-multiple-matcher-bindings.rs:22 :6
2226 |
2327LL | ($a:ident, $($a:ident),*) => {};
2428 | ^^^^^^^^ ^^^^^^^^
@@ -27,7 +31,7 @@ LL | ($a:ident, $($a:ident),*) => {};
2731 = note: for more information, see issue #57593 <https://github.com/rust-lang/rust/issues/57593>
2832
2933warning: duplicate matcher binding
30- --> $DIR/macro-multiple-matcher-bindings.rs:22 :8
34+ --> $DIR/macro-multiple-matcher-bindings.rs:23 :8
3135 |
3236LL | ($($a:ident)+ # $($($a:path),+);*) => {};
3337 | ^^^^^^^^ ^^^^^^^
0 commit comments