1error[E0659]: `bar` is ambiguous
2  --> $DIR/macro-paths.rs:13:5
3   |
4LL |     bar::m! {
5   |     ^^^ ambiguous name
6   |
7   = note: ambiguous because of a conflict between a name from a glob import and a macro-expanded name in the same module during import or macro resolution
8note: `bar` could refer to the module defined here
9  --> $DIR/macro-paths.rs:14:9
10   |
11LL |         mod bar { pub use two_macros::m; }
12   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13note: `bar` could also refer to the module imported here
14  --> $DIR/macro-paths.rs:12:9
15   |
16LL |     use foo::*;
17   |         ^^^^^^
18   = help: consider adding an explicit import of `bar` to disambiguate
19
20error[E0659]: `baz` is ambiguous
21  --> $DIR/macro-paths.rs:23:5
22   |
23LL |     baz::m! {
24   |     ^^^ ambiguous name
25   |
26   = note: ambiguous because of a conflict between a macro-expanded name and a less macro-expanded name from outer scope during import or macro resolution
27note: `baz` could refer to the module defined here
28  --> $DIR/macro-paths.rs:24:9
29   |
30LL |         mod baz { pub use two_macros::m; }
31   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32note: `baz` could also refer to the module defined here
33  --> $DIR/macro-paths.rs:18:1
34   |
35LL | / pub mod baz {
36LL | |     pub use two_macros::m;
37LL | | }
38   | |_^
39   = help: use `crate::baz` to refer to this module unambiguously
40
41error: aborting due to 2 previous errors
42
43For more information about this error, try `rustc --explain E0659`.
44