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