]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/macro-paths.stderr
799e7f972464b55f73d754a39392d7e3316eca3e
[rust.git] / src / test / ui / imports / macro-paths.stderr
1 error[E0659]: `bar` is ambiguous
2   --> $DIR/macro-paths.rs:25:5
3    |
4 LL |     bar::m! { //~ ERROR ambiguous
5    |     ^^^^^^
6    |
7 note: `bar` could refer to the name defined here
8   --> $DIR/macro-paths.rs:26:9
9    |
10 LL |         mod bar { pub use two_macros::m; }
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 note: `bar` could also refer to the name imported here
13   --> $DIR/macro-paths.rs:24:9
14    |
15 LL |     use foo::*;
16    |         ^^^^^^
17    = note: macro-expanded items do not shadow when used in a macro invocation path
18
19 error[E0659]: `baz` is ambiguous
20   --> $DIR/macro-paths.rs:35:5
21    |
22 LL |     baz::m! { //~ ERROR ambiguous
23    |     ^^^^^^
24    |
25 note: `baz` could refer to the name defined here
26   --> $DIR/macro-paths.rs:36:9
27    |
28 LL |         mod baz { pub use two_macros::m; }
29    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 note: `baz` could also refer to the name defined here
31   --> $DIR/macro-paths.rs:30:1
32    |
33 LL | / pub mod baz {
34 LL | |     pub use two_macros::m;
35 LL | | }
36    | |_^
37    = note: macro-expanded items do not shadow when used in a macro invocation path
38
39 error: aborting due to 2 previous errors
40
41 For more information about this error, try `rustc --explain E0659`.