fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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