fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1error[E0659]: `panic` is ambiguous (glob import vs any other name from outer scope during import/macro resolution) 2 --> $DIR/shadow_builtin_macros.rs:15:14 3 | 4LL | fn f() { panic!(); } 5 | ^^^^^ ambiguous name 6 | 7 = note: `panic` could refer to a macro from prelude 8note: `panic` could also refer to the macro imported here 9 --> $DIR/shadow_builtin_macros.rs:14:9 10 | 11LL | use foo::*; 12 | ^^^^^^ 13 = help: consider adding an explicit import of `panic` to disambiguate 14 = help: or use `self::panic` to refer to this macro unambiguously 15 16error[E0659]: `panic` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution) 17 --> $DIR/shadow_builtin_macros.rs:33:5 18 | 19LL | panic!(); 20 | ^^^^^ ambiguous name 21 | 22 = note: `panic` could refer to a macro from prelude 23note: `panic` could also refer to the macro defined here 24 --> $DIR/shadow_builtin_macros.rs:30:9 25 | 26LL | macro_rules! panic { () => {} } 27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 28LL | } } 29LL | m!(); 30 | ----- in this macro invocation 31 32error[E0659]: `n` is ambiguous (glob import vs any other name from outer scope during import/macro resolution) 33 --> $DIR/shadow_builtin_macros.rs:49:5 34 | 35LL | n!(); 36 | ^ ambiguous name 37 | 38note: `n` could refer to the macro imported here 39 --> $DIR/shadow_builtin_macros.rs:48:9 40 | 41LL | use bar::*; 42 | ^^^^^^ 43 = help: consider adding an explicit import of `n` to disambiguate 44 = help: or use `self::n` to refer to this macro unambiguously 45note: `n` could also refer to the macro imported here 46 --> $DIR/shadow_builtin_macros.rs:36:13 47 | 48LL | #[macro_use(n)] 49 | ^ 50 51error[E0659]: `panic` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution) 52 --> $DIR/shadow_builtin_macros.rs:20:14 53 | 54LL | fn f() { panic!(); } 55 | ^^^^^ ambiguous name 56 | 57 = note: `panic` could refer to a macro from prelude 58note: `panic` could also refer to the macro imported here 59 --> $DIR/shadow_builtin_macros.rs:19:26 60 | 61LL | ::two_macros::m!(use foo::panic;); 62 | ^^^^^^^^^^ 63 = help: use `self::panic` to refer to this macro unambiguously 64 65error: aborting due to 4 previous errors 66 67For more information about this error, try `rustc --explain E0659`.