1 error[E0432]: unresolved import `nonexistent_module`
2 --> $DIR/issue-53269.rs:6:9
4 LL | use nonexistent_module::mac;
5 | ^^^^^^^^^^^^^^^^^^ maybe a missing crate `nonexistent_module`?
7 error[E0659]: `mac` is ambiguous
8 --> $DIR/issue-53269.rs:8:5
13 = note: ambiguous because of a conflict between a `macro_rules` name and a non-`macro_rules` name from another module
14 note: `mac` could refer to the macro defined here
15 --> $DIR/issue-53269.rs:3:1
17 LL | macro_rules! mac { () => () }
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19 note: `mac` could also refer to the unresolved item imported here
20 --> $DIR/issue-53269.rs:6:9
22 LL | use nonexistent_module::mac;
23 | ^^^^^^^^^^^^^^^^^^^^^^^
24 = help: use `self::mac` to refer to this unresolved item unambiguously
26 error: aborting due to 2 previous errors
28 Some errors have detailed explanations: E0432, E0659.
29 For more information about an error, try `rustc --explain E0432`.