fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
1.1 KiB37 linesraw
1error[E0659]: `m` is ambiguous (`macro_rules` vs non-`macro_rules` from other module)
2  --> $DIR/ambiguity-legacy-vs-modern.rs:31:9
3   |
4LL |         m!()
5   |         ^ ambiguous name
6   |
7note: `m` could refer to the macro defined here
8  --> $DIR/ambiguity-legacy-vs-modern.rs:26:5
9   |
10LL |     macro_rules! m { () => (()) }
11   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12note: `m` could also refer to the macro defined here
13  --> $DIR/ambiguity-legacy-vs-modern.rs:29:9
14   |
15LL |         macro m() { 0 }
16   |         ^^^^^^^^^^^^^^^
17
18error[E0659]: `m` is ambiguous (`macro_rules` vs non-`macro_rules` from other module)
19  --> $DIR/ambiguity-legacy-vs-modern.rs:43:5
20   |
21LL |     m!()
22   |     ^ ambiguous name
23   |
24note: `m` could refer to the macro defined here
25  --> $DIR/ambiguity-legacy-vs-modern.rs:40:9
26   |
27LL |         macro_rules! m { () => (()) }
28   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29note: `m` could also refer to the macro defined here
30  --> $DIR/ambiguity-legacy-vs-modern.rs:36:5
31   |
32LL |     macro m() { 0 }
33   |     ^^^^^^^^^^^^^^^
34
35error: aborting due to 2 previous errors
36
37For more information about this error, try `rustc --explain E0659`.