fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.7 KiB70 linesraw
1error[E0659]: `exported` is ambiguous
2  --> $DIR/local-modularized-tricky-fail-1.rs:29:1
3   |
4LL | 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
8note: `exported` could refer to the macro defined here
9  --> $DIR/local-modularized-tricky-fail-1.rs:6:5
10   |
11LL | /     macro_rules! exported {
12LL | |         () => ()
13LL | |     }
14   | |_____^
15...
16LL |       define_exported!();
17   |       ------------------ in this macro invocation
18note: `exported` could also refer to the macro imported here
19  --> $DIR/local-modularized-tricky-fail-1.rs:23:5
20   |
21LL | 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
26error[E0659]: `panic` is ambiguous
27  --> $DIR/local-modularized-tricky-fail-1.rs:36:5
28   |
29LL |     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
34note: `panic` could also refer to the macro defined here
35  --> $DIR/local-modularized-tricky-fail-1.rs:12:5
36   |
37LL | /     macro_rules! panic {
38LL | |         () => ()
39LL | |     }
40   | |_____^
41...
42LL |       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
47error[E0659]: `include` is ambiguous
48  --> $DIR/local-modularized-tricky-fail-1.rs:47:1
49   |
50LL | 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
55note: `include` could also refer to the macro defined here
56  --> $DIR/local-modularized-tricky-fail-1.rs:18:5
57   |
58LL | /     macro_rules! include {
59LL | |         () => ()
60LL | |     }
61   | |_____^
62...
63LL |       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
68error: aborting due to 3 previous errors
69
70For more information about this error, try `rustc --explain E0659`.