fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.7 KiB57 linesraw
1error[E0659]: `m` is ambiguous (glob import vs macro-expanded name in the same module during import/macro resolution)
2  --> $DIR/macros.rs:16:5
3   |
4LL |     m! {
5   |     ^ ambiguous name
6   |
7note: `m` could refer to the macro imported here
8  --> $DIR/macros.rs:18:13
9   |
10LL |         use foo::m;
11   |             ^^^^^^
12note: `m` could also refer to the macro imported here
13  --> $DIR/macros.rs:15:9
14   |
15LL |     use two_macros::*;
16   |         ^^^^^^^^^^^^^
17   = help: consider adding an explicit import of `m` to disambiguate
18
19error[E0659]: `m` is ambiguous (glob import vs macro-expanded name in the same module during import/macro resolution)
20  --> $DIR/macros.rs:16:5
21   |
22LL |     m! {
23   |     ^ ambiguous name
24   |
25note: `m` could refer to the macro imported here
26  --> $DIR/macros.rs:18:13
27   |
28LL |         use foo::m;
29   |             ^^^^^^
30note: `m` could also refer to the macro imported here
31  --> $DIR/macros.rs:15:9
32   |
33LL |     use two_macros::*;
34   |         ^^^^^^^^^^^^^
35   = help: consider adding an explicit import of `m` to disambiguate
36
37error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
38  --> $DIR/macros.rs:30:9
39   |
40LL |         m! {
41   |         ^ ambiguous name
42   |
43note: `m` could refer to the macro imported here
44  --> $DIR/macros.rs:31:17
45   |
46LL |             use two_macros::n as m;
47   |                 ^^^^^^^^^^^^^^^^^^
48note: `m` could also refer to the macro imported here
49  --> $DIR/macros.rs:23:9
50   |
51LL |     use two_macros::m;
52   |         ^^^^^^^^^^^^^
53   = help: use `self::m` to refer to this macro unambiguously
54
55error: aborting due to 3 previous errors
56
57For more information about this error, try `rustc --explain E0659`.