rust/tests/ui/imports/issue-8208.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
433 B
Rust
Raw Normal View History

2016-08-22 05:57:10 +00:00
use self::*; //~ ERROR: unresolved import `self::*` [E0432]
2019-01-16 20:30:41 +00:00
//~^ cannot glob-import a module into itself
mod foo {
2016-08-22 05:57:10 +00:00
use foo::*; //~ ERROR: unresolved import `foo::*` [E0432]
2019-01-16 20:30:41 +00:00
//~^ cannot glob-import a module into itself
mod bar {
use super::bar::*;
2016-08-22 05:57:10 +00:00
//~^ ERROR: unresolved import `super::bar::*` [E0432]
2019-01-16 20:30:41 +00:00
//~| cannot glob-import a module into itself
}
}
fn main() {
}