fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.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 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) 32 33error[E0659]: `n` is ambiguous (glob import vs any other name from outer scope during import/macro resolution) 34 --> $DIR/shadow_builtin_macros.rs:49:5 35 | 36LL | n!(); 37 | ^ ambiguous name 38 | 39note: `n` could refer to the macro imported here 40 --> $DIR/shadow_builtin_macros.rs:48:9 41 | 42LL | use bar::*; 43 | ^^^^^^ 44 = help: consider adding an explicit import of `n` to disambiguate 45 = help: or use `self::n` to refer to this macro unambiguously 46note: `n` could also refer to the macro imported here 47 --> $DIR/shadow_builtin_macros.rs:36:13 48 | 49LL | #[macro_use(n)] 50 | ^ 51 52error[E0659]: `panic` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution) 53 --> $DIR/shadow_builtin_macros.rs:20:14 54 | 55LL | fn f() { panic!(); } 56 | ^^^^^ ambiguous name 57 | 58 = note: `panic` could refer to a macro from prelude 59note: `panic` could also refer to the macro imported here 60 --> $DIR/shadow_builtin_macros.rs:19:26 61 | 62LL | ::two_macros::m!(use foo::panic;); 63 | ^^^^^^^^^^ 64 = help: use `self::panic` to refer to this macro unambiguously 65 66error: aborting due to 4 previous errors 67 68For more information about this error, try `rustc --explain E0659`.