Skip to content

Commit

Permalink
Rollup merge of rust-lang#57551 - petrochenkov:regrtest, r=nikomatsakis
Browse files Browse the repository at this point in the history
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
Centril authored Jan 17, 2019
2 parents a4c5c84 + ebdd072 commit 29e6636
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/ui/imports/issue-57539.rs
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() {}
18 changes: 18 additions & 0 deletions src/test/ui/imports/issue-57539.stderr
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`.

0 comments on commit 29e6636

Please sign in to comment.