]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/macro-paths.stderr
Rollup merge of #89876 - AlexApps99:const_ops, r=oli-obk
[rust.git] / src / test / ui / imports / macro-paths.stderr
1 error[E0659]: `bar` is ambiguous
2   --> $DIR/macro-paths.rs:13:5
3    |
4 LL |     bar::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: `bar` could refer to the module defined here
9   --> $DIR/macro-paths.rs:14:9
10    |
11 LL |         mod bar { pub use two_macros::m; }
12    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 note: `bar` could also refer to the module imported here
14   --> $DIR/macro-paths.rs:12:9
15    |
16 LL |     use foo::*;
17    |         ^^^^^^
18    = help: consider adding an explicit import of `bar` to disambiguate
19
20 error[E0659]: `baz` is ambiguous
21   --> $DIR/macro-paths.rs:23:5
22    |
23 LL |     baz::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: `baz` could refer to the module defined here
28   --> $DIR/macro-paths.rs:24:9
29    |
30 LL |         mod baz { pub use two_macros::m; }
31    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32 note: `baz` could also refer to the module defined here
33   --> $DIR/macro-paths.rs:18:1
34    |
35 LL | / pub mod baz {
36 LL | |     pub use two_macros::m;
37 LL | | }
38    | |_^
39    = help: use `crate::baz` to refer to this module unambiguously
40
41 error: aborting due to 2 previous errors
42
43 For more information about this error, try `rustc --explain E0659`.