]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/macros.stderr
f91987cd9f3402779b2d9f78ed9ecae8c6b1cdfb
[rust.git] / src / test / ui / imports / macros.stderr
1 error: `m` is ambiguous
2   --> $DIR/macros.rs:50:5
3    |
4 LL |     m!(); //~ ERROR ambiguous
5    |     ^
6    |
7 note: `m` could refer to the macro defined here
8   --> $DIR/macros.rs:48:5
9    |
10 LL |     macro_rules! m { () => {} }
11    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 note: `m` could also refer to the macro imported here
13   --> $DIR/macros.rs:49:9
14    |
15 LL |     use two_macros::m;
16    |         ^^^^^^^^^^^^^
17
18 error[E0659]: `m` is ambiguous
19   --> $DIR/macros.rs:28:5
20    |
21 LL |     m! { //~ ERROR ambiguous
22    |     ^
23    |
24 note: `m` could refer to the name imported here
25   --> $DIR/macros.rs:29:13
26    |
27 LL |         use foo::m;
28    |             ^^^^^^
29 note: `m` could also refer to the name imported here
30   --> $DIR/macros.rs:27:9
31    |
32 LL |     use two_macros::*;
33    |         ^^^^^^^^^^^^^
34    = note: macro-expanded macro imports do not shadow
35
36 error[E0659]: `m` is ambiguous
37   --> $DIR/macros.rs:41:9
38    |
39 LL |         m! { //~ ERROR ambiguous
40    |         ^
41    |
42 note: `m` could refer to the name imported here
43   --> $DIR/macros.rs:42:17
44    |
45 LL |             use two_macros::n as m;
46    |                 ^^^^^^^^^^^^^^^^^^
47 note: `m` could also refer to the name imported here
48   --> $DIR/macros.rs:34:9
49    |
50 LL |     use two_macros::m;
51    |         ^^^^^^^^^^^^^
52    = note: macro-expanded macro imports do not shadow
53
54 error: aborting due to 3 previous errors
55
56 For more information about this error, try `rustc --explain E0659`.