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