]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/local-modularized-tricky-fail-1.stderr
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / ui / imports / local-modularized-tricky-fail-1.stderr
1 error[E0659]: `exported` is ambiguous
2   --> $DIR/local-modularized-tricky-fail-1.rs:28:1
3    |
4 LL | exported!();
5    | ^^^^^^^^ ambiguous name
6    |
7    = note: ambiguous because of a conflict between a name from a glob import and a macro-expanded name in the same module during import or macro resolution
8 note: `exported` could refer to the macro defined here
9   --> $DIR/local-modularized-tricky-fail-1.rs:5:5
10    |
11 LL | /     macro_rules! exported {
12 LL | |         () => ()
13 LL | |     }
14    | |_____^
15 ...
16 LL |       define_exported!();
17    |       ------------------ in this macro invocation
18 note: `exported` could also refer to the macro imported here
19   --> $DIR/local-modularized-tricky-fail-1.rs:22:5
20    |
21 LL | use inner1::*;
22    |     ^^^^^^^^^
23    = help: consider adding an explicit import of `exported` to disambiguate
24    = note: this error originates in the macro `define_exported` (in Nightly builds, run with -Z macro-backtrace for more info)
25
26 error[E0659]: `panic` is ambiguous
27   --> $DIR/local-modularized-tricky-fail-1.rs:35:5
28    |
29 LL |     panic!();
30    |     ^^^^^ ambiguous name
31    |
32    = 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
33    = note: `panic` could refer to a macro from prelude
34 note: `panic` could also refer to the macro defined here
35   --> $DIR/local-modularized-tricky-fail-1.rs:11:5
36    |
37 LL | /     macro_rules! panic {
38 LL | |         () => ()
39 LL | |     }
40    | |_____^
41 ...
42 LL |       define_panic!();
43    |       --------------- in this macro invocation
44    = help: use `crate::panic` to refer to this macro unambiguously
45    = note: this error originates in the macro `define_panic` (in Nightly builds, run with -Z macro-backtrace for more info)
46
47 error[E0659]: `include` is ambiguous
48   --> $DIR/local-modularized-tricky-fail-1.rs:46:1
49    |
50 LL | include!();
51    | ^^^^^^^ ambiguous name
52    |
53    = 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
54    = note: `include` could refer to a macro from prelude
55 note: `include` could also refer to the macro defined here
56   --> $DIR/local-modularized-tricky-fail-1.rs:17:5
57    |
58 LL | /     macro_rules! include {
59 LL | |         () => ()
60 LL | |     }
61    | |_____^
62 ...
63 LL |       define_include!();
64    |       ----------------- in this macro invocation
65    = help: use `crate::include` to refer to this macro unambiguously
66    = note: this error originates in the macro `define_include` (in Nightly builds, run with -Z macro-backtrace for more info)
67
68 error: aborting due to 3 previous errors
69
70 For more information about this error, try `rustc --explain E0659`.