]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/macros.stderr
Auto merge of #55780 - ogoffart:span_source_text, r=petrochenkov
[rust.git] / src / test / ui / imports / macros.stderr
1 error[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    |
4 LL |     m! {
5    |     ^ ambiguous name
6    |
7 note: `m` could refer to the macro imported here
8   --> $DIR/macros.rs:17:13
9    |
10 LL |         use foo::m;
11    |             ^^^^^^
12 note: `m` could also refer to the macro imported here
13   --> $DIR/macros.rs:15:9
14    |
15 LL |     use two_macros::*;
16    |         ^^^^^^^^^^^^^
17    = help: consider adding an explicit import of `m` to disambiguate
18
19 error[E0659]: `m` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
20   --> $DIR/macros.rs:29:9
21    |
22 LL |         m! {
23    |         ^ ambiguous name
24    |
25 note: `m` could refer to the macro imported here
26   --> $DIR/macros.rs:30:17
27    |
28 LL |             use two_macros::n as m;
29    |                 ^^^^^^^^^^^^^^^^^^
30 note: `m` could also refer to the macro imported here
31   --> $DIR/macros.rs:22:9
32    |
33 LL |     use two_macros::m;
34    |         ^^^^^^^^^^^^^
35    = help: use `self::m` to refer to this macro unambiguously
36
37 error: aborting due to 2 previous errors
38
39 For more information about this error, try `rustc --explain E0659`.