]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/issue-53269.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / imports / issue-53269.stderr
1 error[E0432]: unresolved import `nonexistent_module`
2   --> $DIR/issue-53269.rs:16:9
3    |
4 LL |     use nonexistent_module::mac; //~ ERROR unresolved import `nonexistent_module`
5    |         ^^^^^^^^^^^^^^^^^^ Maybe a missing `extern crate nonexistent_module;`?
6
7 error[E0659]: `mac` is ambiguous
8   --> $DIR/issue-53269.rs:18:5
9    |
10 LL |     mac!(); //~ ERROR `mac` is ambiguous
11    |     ^^^ ambiguous name
12    |
13 note: `mac` could refer to the name defined here
14   --> $DIR/issue-53269.rs:13:1
15    |
16 LL | macro_rules! mac { () => () }
17    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 note: `mac` could also refer to the name imported here
19   --> $DIR/issue-53269.rs:16:9
20    |
21 LL |     use nonexistent_module::mac; //~ ERROR unresolved import `nonexistent_module`
22    |         ^^^^^^^^^^^^^^^^^^^^^^^
23
24 error: aborting due to 2 previous errors
25
26 Some errors occurred: E0432, E0659.
27 For more information about an error, try `rustc --explain E0432`.