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