]> git.proxmox.com Git - rustc.git/blob - tests/ui/imports/macros.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / imports / macros.stderr
1 error[E0659]: `m` is ambiguous
2 --> $DIR/macros.rs:16:5
3 |
4 LL | m! {
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: `m` could refer to the macro imported here
9 --> $DIR/macros.rs:17:13
10 |
11 LL | use foo::m;
12 | ^^^^^^
13 note: `m` could also refer to the macro imported here
14 --> $DIR/macros.rs:15:9
15 |
16 LL | use two_macros::*;
17 | ^^^^^^^^^^^^^
18 = help: consider adding an explicit import of `m` to disambiguate
19
20 error[E0659]: `m` is ambiguous
21 --> $DIR/macros.rs:29:9
22 |
23 LL | m! {
24 | ^ ambiguous name
25 |
26 = 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
27 note: `m` could refer to the macro imported here
28 --> $DIR/macros.rs:30:17
29 |
30 LL | use two_macros::n as m;
31 | ^^^^^^^^^^^^^^^^^^
32 note: `m` could also refer to the macro imported here
33 --> $DIR/macros.rs:22:9
34 |
35 LL | use two_macros::m;
36 | ^^^^^^^^^^^^^
37 = help: use `self::m` to refer to this macro unambiguously
38
39 error: aborting due to 2 previous errors
40
41 For more information about this error, try `rustc --explain E0659`.