]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/macro-paths.stderr
Add 'src/tools/rustfmt/' from commit '7872306edf2e11a69aaffb9434088fd66b46a863'
[rust.git] / src / test / ui / imports / macro-paths.stderr
1 error[E0659]: `bar` is ambiguous (glob import vs macro-expanded name in the same module during import/macro resolution)
2   --> $DIR/macro-paths.rs:13:5
3    |
4 LL |     bar::m! {
5    |     ^^^ ambiguous name
6    |
7 note: `bar` could refer to the module defined here
8   --> $DIR/macro-paths.rs:14:9
9    |
10 LL |         mod bar { pub use two_macros::m; }
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 note: `bar` could also refer to the module imported here
13   --> $DIR/macro-paths.rs:12:9
14    |
15 LL |     use foo::*;
16    |         ^^^^^^
17    = help: consider adding an explicit import of `bar` to disambiguate
18
19 error[E0659]: `baz` is ambiguous (macro-expanded name vs less macro-expanded name from outer scope during import/macro resolution)
20   --> $DIR/macro-paths.rs:23:5
21    |
22 LL |     baz::m! {
23    |     ^^^ ambiguous name
24    |
25 note: `baz` could refer to the module defined here
26   --> $DIR/macro-paths.rs:24:9
27    |
28 LL |         mod baz { pub use two_macros::m; }
29    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 note: `baz` could also refer to the module defined here
31   --> $DIR/macro-paths.rs:18:1
32    |
33 LL | / pub mod baz {
34 LL | |     pub use two_macros::m;
35 LL | | }
36    | |_^
37    = help: use `crate::baz` to refer to this module unambiguously
38
39 error: aborting due to 2 previous errors
40
41 For more information about this error, try `rustc --explain E0659`.