Rollup merge of #57551 - petrochenkov:regrtest, r=nikomatsakis

resolve: Add a test for issue #57539

Add a test for the bugfix regression reported in https://github.com/rust-lang/rust/issues/57539

Closes https://github.com/rust-lang/rust/issues/57539
This commit is contained in:
Mazdak Farrokhzad 2019-01-18 18:06:32 +01:00 committed by GitHub
commit 4091ca0183
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,8 @@
// edition:2018
mod core {
use core; //~ ERROR `core` is ambiguous
use crate::*;
}
fn main() {}

View file

@ -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`.