]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/local-modularized-tricky-fail-1.stderr
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[rust.git] / src / test / ui / imports / local-modularized-tricky-fail-1.stderr
1 error[E0659]: `exported` is ambiguous (glob import vs macro-expanded name in the same module during import/macro resolution)
2   --> $DIR/local-modularized-tricky-fail-1.rs:28:1
3    |
4 LL | exported!();
5    | ^^^^^^^^ ambiguous name
6    |
7 note: `exported` could refer to the macro defined here
8   --> $DIR/local-modularized-tricky-fail-1.rs:5: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 macro imported here
18   --> $DIR/local-modularized-tricky-fail-1.rs:22:5
19    |
20 LL | use inner1::*;
21    |     ^^^^^^^^^
22    = help: consider adding an explicit import of `exported` to disambiguate
23    = note: this error originates in the macro `define_exported` (in Nightly builds, run with -Z macro-backtrace for more info)
24
25 error[E0659]: `exported` is ambiguous (glob import vs macro-expanded name in the same module during import/macro resolution)
26   --> $DIR/local-modularized-tricky-fail-1.rs:28:1
27    |
28 LL | exported!();
29    | ^^^^^^^^ ambiguous name
30    |
31 note: `exported` could refer to the macro defined here
32   --> $DIR/local-modularized-tricky-fail-1.rs:5:5
33    |
34 LL | /     macro_rules! exported {
35 LL | |         () => ()
36 LL | |     }
37    | |_____^
38 ...
39 LL |       define_exported!();
40    |       ------------------- in this macro invocation
41 note: `exported` could also refer to the macro imported here
42   --> $DIR/local-modularized-tricky-fail-1.rs:22:5
43    |
44 LL | use inner1::*;
45    |     ^^^^^^^^^
46    = help: consider adding an explicit import of `exported` to disambiguate
47    = note: this error originates in the macro `define_exported` (in Nightly builds, run with -Z macro-backtrace for more info)
48
49 error[E0659]: `panic` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
50   --> $DIR/local-modularized-tricky-fail-1.rs:36:5
51    |
52 LL |     panic!();
53    |     ^^^^^ ambiguous name
54    |
55    = note: `panic` could refer to a macro from prelude
56 note: `panic` could also refer to the macro defined here
57   --> $DIR/local-modularized-tricky-fail-1.rs:11:5
58    |
59 LL | /     macro_rules! panic {
60 LL | |         () => ()
61 LL | |     }
62    | |_____^
63 ...
64 LL |       define_panic!();
65    |       ---------------- in this macro invocation
66    = help: use `crate::panic` to refer to this macro unambiguously
67    = note: this error originates in the macro `define_panic` (in Nightly builds, run with -Z macro-backtrace for more info)
68
69 error[E0659]: `include` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
70   --> $DIR/local-modularized-tricky-fail-1.rs:47:1
71    |
72 LL | include!();
73    | ^^^^^^^ ambiguous name
74    |
75    = note: `include` could refer to a macro from prelude
76 note: `include` could also refer to the macro defined here
77   --> $DIR/local-modularized-tricky-fail-1.rs:17:5
78    |
79 LL | /     macro_rules! include {
80 LL | |         () => ()
81 LL | |     }
82    | |_____^
83 ...
84 LL |       define_include!();
85    |       ------------------ in this macro invocation
86    = help: use `crate::include` to refer to this macro unambiguously
87    = note: this error originates in the macro `define_include` (in Nightly builds, run with -Z macro-backtrace for more info)
88
89 error: aborting due to 4 previous errors
90
91 For more information about this error, try `rustc --explain E0659`.