rust/src/test/ui/imports/macros.stderr

40 lines
1.0 KiB
Plaintext
Raw Normal View History

2018-01-16 17:00:17 -06:00
error[E0659]: `m` is ambiguous
2018-05-13 19:22:52 -05:00
--> $DIR/macros.rs:26:5
|
2018-02-22 18:42:32 -06:00
LL | m! { //~ ERROR ambiguous
| ^ ambiguous name
|
note: `m` could refer to the name imported here
2018-05-13 19:22:52 -05:00
--> $DIR/macros.rs:27:13
|
2018-02-22 18:42:32 -06:00
LL | use foo::m;
| ^^^^^^
note: `m` could also refer to the name imported here
2018-05-13 19:22:52 -05:00
--> $DIR/macros.rs:25:9
|
2018-02-22 18:42:32 -06:00
LL | use two_macros::*;
| ^^^^^^^^^^^^^
= note: macro-expanded macro imports do not shadow
2018-01-16 17:00:17 -06:00
error[E0659]: `m` is ambiguous
2018-05-13 19:22:52 -05:00
--> $DIR/macros.rs:39:9
|
2018-02-22 18:42:32 -06:00
LL | m! { //~ ERROR ambiguous
| ^ ambiguous name
|
note: `m` could refer to the name imported here
2018-05-13 19:22:52 -05:00
--> $DIR/macros.rs:40:17
|
2018-02-22 18:42:32 -06:00
LL | use two_macros::n as m;
| ^^^^^^^^^^^^^^^^^^
note: `m` could also refer to the name imported here
2018-05-13 19:22:52 -05:00
--> $DIR/macros.rs:32:9
|
2018-02-22 18:42:32 -06:00
LL | use two_macros::m;
| ^^^^^^^^^^^^^
= note: macro-expanded macro imports do not shadow
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0659`.