mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
24 lines
492 B
Rust
24 lines
492 B
Rust
mod a {
|
|
mod b {
|
|
mod c {
|
|
pub struct E;
|
|
}
|
|
|
|
mod d {
|
|
#[derive(Debug)]
|
|
pub struct E;
|
|
}
|
|
|
|
pub use self::d::*;
|
|
pub use self::c::*;
|
|
}
|
|
|
|
pub use self::b::*;
|
|
}
|
|
|
|
use self::a::E::in_exist;
|
|
//~^ ERROR: unresolved import `self::a::E`
|
|
//~| WARNING: `E` is ambiguous
|
|
//~| WARNING: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
fn main() {}
|