]> git.lizzy.rs Git - rust.git/blob - tests/ui/macros/ambiguity-legacy-vs-modern.stderr
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / macros / ambiguity-legacy-vs-modern.stderr
1 error[E0659]: `m` is ambiguous
2   --> $DIR/ambiguity-legacy-vs-modern.rs:31:9
3    |
4 LL |         m!()
5    |         ^ ambiguous name
6    |
7    = note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module
8 note: `m` could refer to the macro defined here
9   --> $DIR/ambiguity-legacy-vs-modern.rs:26:5
10    |
11 LL |     macro_rules! m { () => (()) }
12    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 note: `m` could also refer to the macro defined here
14   --> $DIR/ambiguity-legacy-vs-modern.rs:29:9
15    |
16 LL |         macro m() { 0 }
17    |         ^^^^^^^^^^^^^^^
18
19 error[E0659]: `m` is ambiguous
20   --> $DIR/ambiguity-legacy-vs-modern.rs:43:5
21    |
22 LL |     m!()
23    |     ^ ambiguous name
24    |
25    = note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module
26 note: `m` could refer to the macro defined here
27   --> $DIR/ambiguity-legacy-vs-modern.rs:40:9
28    |
29 LL |         macro_rules! m { () => (()) }
30    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 note: `m` could also refer to the macro defined here
32   --> $DIR/ambiguity-legacy-vs-modern.rs:36:5
33    |
34 LL |     macro m() { 0 }
35    |     ^^^^^^^^^^^^^^^
36
37 error: aborting due to 2 previous errors
38
39 For more information about this error, try `rustc --explain E0659`.