File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ // edition:2018
2+
3+ mod core {
4+ use core; //~ ERROR `core` is ambiguous
5+ use crate :: * ;
6+ }
7+
8+ fn main ( ) { }
Original file line number Diff line number Diff line change 1+ error[E0659]: `core` is ambiguous (name vs any other name during import resolution)
2+ --> $DIR/issue-57539.rs:4:9
3+ |
4+ LL | use core; //~ ERROR `core` is ambiguous
5+ | ^^^^ ambiguous name
6+ |
7+ = note: `core` could refer to a built-in extern crate
8+ = help: use `::core` to refer to this extern crate unambiguously
9+ note: `core` could also refer to the module imported here
10+ --> $DIR/issue-57539.rs:5:9
11+ |
12+ LL | use crate::*;
13+ | ^^^^^^^^
14+ = help: use `self::core` to refer to this module unambiguously
15+
16+ error: aborting due to previous error
17+
18+ For more information about this error, try `rustc --explain E0659`.
You can’t perform that action at this time.
0 commit comments