2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `m` is ambiguous
|
2018-09-26 20:49:40 -05:00
|
|
|
--> $DIR/ambiguity-legacy-vs-modern.rs:31:9
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | m!()
|
2018-09-26 20:49:40 -05:00
|
|
|
| ^ ambiguous name
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could refer to the macro defined here
|
2018-09-26 20:49:40 -05:00
|
|
|
--> $DIR/ambiguity-legacy-vs-modern.rs:26:5
|
|
|
|
|
|
|
|
|
LL | macro_rules! m { () => (()) }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could also refer to the macro defined here
|
2018-09-26 20:49:40 -05:00
|
|
|
--> $DIR/ambiguity-legacy-vs-modern.rs:29:9
|
|
|
|
|
|
|
|
|
LL | macro m() { 0 }
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
error[E0659]: `m` is ambiguous
|
2018-09-26 20:49:40 -05:00
|
|
|
--> $DIR/ambiguity-legacy-vs-modern.rs:43:5
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | m!()
|
2018-09-26 20:49:40 -05:00
|
|
|
| ^ ambiguous name
|
|
|
|
|
|
2021-10-20 08:56:10 -05:00
|
|
|
= note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could refer to the macro defined here
|
2018-09-26 20:49:40 -05:00
|
|
|
--> $DIR/ambiguity-legacy-vs-modern.rs:40:9
|
|
|
|
|
|
|
|
|
LL | macro_rules! m { () => (()) }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-11-04 16:11:59 -06:00
|
|
|
note: `m` could also refer to the macro defined here
|
2018-09-26 20:49:40 -05:00
|
|
|
--> $DIR/ambiguity-legacy-vs-modern.rs:36:5
|
|
|
|
|
|
|
|
|
LL | macro m() { 0 }
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0659`.
|