forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#57551 - petrochenkov:regrtest, r=nikomatsakis
resolve: Add a test for issue rust-lang#57539 Add a test for the bugfix regression reported in rust-lang#57539 Closes rust-lang#57539
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// edition:2018 | ||
|
||
mod core { | ||
use core; //~ ERROR `core` is ambiguous | ||
use crate::*; | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
error[E0659]: `core` is ambiguous (name vs any other name during import resolution) | ||
--> $DIR/issue-57539.rs:4:9 | ||
| | ||
LL | use core; //~ ERROR `core` is ambiguous | ||
| ^^^^ ambiguous name | ||
| | ||
= note: `core` could refer to a built-in extern crate | ||
= help: use `::core` to refer to this extern crate unambiguously | ||
note: `core` could also refer to the module imported here | ||
--> $DIR/issue-57539.rs:5:9 | ||
| | ||
LL | use crate::*; | ||
| ^^^^^^^^ | ||
= help: use `self::core` to refer to this module unambiguously | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0659`. |