fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
1.3 KiB50 linesraw
1error: duplicate matcher binding
2  --> $DIR/macro-multiple-matcher-bindings.rs:7:16
3   |
4LL |     ($a:ident, $a:ident) => {};
5   |                ^^^^^^^^
6   |
7note: previous declaration was here
8  --> $DIR/macro-multiple-matcher-bindings.rs:7:6
9   |
10LL |     ($a:ident, $a:ident) => {};
11   |      ^^^^^^^^
12
13error: duplicate matcher binding
14  --> $DIR/macro-multiple-matcher-bindings.rs:8:16
15   |
16LL |     ($a:ident, $a:path) => {};
17   |                ^^^^^^^
18   |
19note: previous declaration was here
20  --> $DIR/macro-multiple-matcher-bindings.rs:8:6
21   |
22LL |     ($a:ident, $a:path) => {};
23   |      ^^^^^^^^
24
25error: duplicate matcher binding
26  --> $DIR/macro-multiple-matcher-bindings.rs:17:18
27   |
28LL |     ($a:ident, $($a:ident),*) => {};
29   |                  ^^^^^^^^
30   |
31note: previous declaration was here
32  --> $DIR/macro-multiple-matcher-bindings.rs:17:6
33   |
34LL |     ($a:ident, $($a:ident),*) => {};
35   |      ^^^^^^^^
36
37error: duplicate matcher binding
38  --> $DIR/macro-multiple-matcher-bindings.rs:18:25
39   |
40LL |     ($($a:ident)+ # $($($a:path),+);*) => {};
41   |                         ^^^^^^^
42   |
43note: previous declaration was here
44  --> $DIR/macro-multiple-matcher-bindings.rs:18:8
45   |
46LL |     ($($a:ident)+ # $($($a:path),+);*) => {};
47   |        ^^^^^^^^
48
49error: aborting due to 4 previous errors
50