]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/local-modularized-tricky-fail-1.stderr
resolve: Modularize crate-local `#[macro_export] macro_rules`
[rust.git] / src / test / ui / imports / local-modularized-tricky-fail-1.stderr
1 error[E0659]: `exported` is ambiguous
2   --> $DIR/local-modularized-tricky-fail-1.rs:38:1
3    |
4 LL | exported!(); //~ ERROR `exported` is ambiguous
5    | ^^^^^^^^
6    |
7 note: `exported` could refer to the name defined here
8   --> $DIR/local-modularized-tricky-fail-1.rs:15:5
9    |
10 LL | /     macro_rules! exported {
11 LL | |         () => ()
12 LL | |     }
13    | |_____^
14 ...
15 LL |       define_exported!();
16    |       ------------------- in this macro invocation
17 note: `exported` could also refer to the name imported here
18   --> $DIR/local-modularized-tricky-fail-1.rs:32:5
19    |
20 LL | use inner1::*;
21    |     ^^^^^^^^^
22    = note: macro-expanded macros do not shadow
23
24 error[E0659]: `include` is ambiguous
25   --> $DIR/local-modularized-tricky-fail-1.rs:57:1
26    |
27 LL | include!(); //~ ERROR `include` is ambiguous
28    | ^^^^^^^
29    |
30 note: `include` could refer to the name defined here
31   --> $DIR/local-modularized-tricky-fail-1.rs:27:5
32    |
33 LL | /     macro_rules! include {
34 LL | |         () => ()
35 LL | |     }
36    | |_____^
37 ...
38 LL |       define_include!();
39    |       ------------------ in this macro invocation
40    = note: `include` is also a builtin macro
41    = note: macro-expanded macros do not shadow
42
43 error[E0659]: `panic` is ambiguous
44   --> $DIR/local-modularized-tricky-fail-1.rs:45:5
45    |
46 LL |     panic!(); //~ ERROR `panic` is ambiguous
47    |     ^^^^^
48    |
49 note: `panic` could refer to the name defined here
50   --> $DIR/local-modularized-tricky-fail-1.rs:21:5
51    |
52 LL | /     macro_rules! panic {
53 LL | |         () => ()
54 LL | |     }
55    | |_____^
56 ...
57 LL |       define_panic!();
58    |       ---------------- in this macro invocation
59    = note: `panic` is also a builtin macro
60    = note: macro-expanded macros do not shadow
61
62 error[E0659]: `panic` is ambiguous
63   --> $DIR/local-modularized-tricky-fail-1.rs:45:5
64    |
65 LL |     panic!(); //~ ERROR `panic` is ambiguous
66    |     ^^^^^^^^^
67    |
68 note: `panic` could refer to the name defined here
69   --> $DIR/local-modularized-tricky-fail-1.rs:21:5
70    |
71 LL | /     macro_rules! panic {
72 LL | |         () => ()
73 LL | |     }
74    | |_____^
75 ...
76 LL |       define_panic!();
77    |       ---------------- in this macro invocation
78    = note: `panic` is also a builtin macro
79    = note: macro-expanded macros do not shadow
80    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
81
82 error: aborting due to 4 previous errors
83
84 For more information about this error, try `rustc --explain E0659`.