mirror of
https://github.com/rust-lang/rust
synced 2024-07-20 09:56:07 +00:00
14 lines
192 B
Rust
14 lines
192 B
Rust
mod foo {
|
|
pub use self::bar::X;
|
|
use self::bar::X;
|
|
//~^ ERROR the name `X` is defined multiple times
|
|
|
|
mod bar {
|
|
pub struct X;
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
let _ = foo::X;
|
|
}
|