mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 21:55:31 +00:00
18 lines
462 B
Rust
18 lines
462 B
Rust
use self::*; //~ ERROR: unresolved import `self::*` [E0432]
|
|
//~^ NOTE cannot glob-import a module into itself
|
|
|
|
mod foo {
|
|
use crate::foo::*; //~ ERROR: unresolved import `crate::foo::*` [E0432]
|
|
//~^ NOTE cannot glob-import a module into itself
|
|
|
|
mod bar {
|
|
use super::bar::*;
|
|
//~^ ERROR: unresolved import `super::bar::*` [E0432]
|
|
//~| NOTE cannot glob-import a module into itself
|
|
}
|
|
|
|
}
|
|
|
|
fn main() {
|
|
}
|