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