1 error[E0659]: `panic` is ambiguous
2 --> $DIR/shadow_builtin_macros.rs:15:14
4 LL | fn f() { panic!(); }
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
9 note: `panic` could also refer to the macro imported here
10 --> $DIR/shadow_builtin_macros.rs:14:9
14 = help: consider adding an explicit import of `panic` to disambiguate
15 = help: or use `self::panic` to refer to this macro unambiguously
17 error[E0659]: `panic` is ambiguous
18 --> $DIR/shadow_builtin_macros.rs:33:5
21 | ^^^^^ ambiguous name
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
25 note: `panic` could also refer to the macro defined here
26 --> $DIR/shadow_builtin_macros.rs:30:9
28 LL | macro_rules! panic { () => {} }
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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)
35 error[E0659]: `n` is ambiguous
36 --> $DIR/shadow_builtin_macros.rs:49:5
41 = note: ambiguous because of a conflict between a name from a glob import and an outer scope during import or macro resolution
42 note: `n` could refer to the macro imported here
43 --> $DIR/shadow_builtin_macros.rs:48:9
47 = help: consider adding an explicit import of `n` to disambiguate
48 = help: or use `self::n` to refer to this macro unambiguously
49 note: `n` could also refer to the macro imported here
50 --> $DIR/shadow_builtin_macros.rs:36:13
55 error[E0659]: `panic` is ambiguous
56 --> $DIR/shadow_builtin_macros.rs:20:14
58 LL | fn f() { panic!(); }
59 | ^^^^^ ambiguous name
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
63 note: `panic` could also refer to the macro imported here
64 --> $DIR/shadow_builtin_macros.rs:19:26
66 LL | ::two_macros::m!(use foo::panic;);
68 = help: use `self::panic` to refer to this macro unambiguously
70 error: aborting due to 4 previous errors
72 For more information about this error, try `rustc --explain E0659`.