]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/macros.stderr
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[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:18: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 (glob import vs macro-expanded name in the same module during import/macro resolution)
20   --> $DIR/macros.rs:16:5
21    |
22 LL |     m! {
23    |     ^ ambiguous name
24    |
25 note: `m` could refer to the macro imported here
26   --> $DIR/macros.rs:18:13
27    |
28 LL |         use foo::m;
29    |             ^^^^^^
30 note: `m` could also refer to the macro imported here
31   --> $DIR/macros.rs:15:9
32    |
33 LL |     use two_macros::*;
34    |         ^^^^^^^^^^^^^
35    = help: consider adding an explicit import of `m` to disambiguate
36
37 error[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    |
40 LL |         m! {
41    |         ^ ambiguous name
42    |
43 note: `m` could refer to the macro imported here
44   --> $DIR/macros.rs:31:17
45    |
46 LL |             use two_macros::n as m;
47    |                 ^^^^^^^^^^^^^^^^^^
48 note: `m` could also refer to the macro imported here
49   --> $DIR/macros.rs:23:9
50    |
51 LL |     use two_macros::m;
52    |         ^^^^^^^^^^^^^
53    = help: use `self::m` to refer to this macro unambiguously
54
55 error: aborting due to 3 previous errors
56
57 For more information about this error, try `rustc --explain E0659`.