mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
53 lines
910 B
Rust
53 lines
910 B
Rust
// check-pass
|
|
|
|
pub mod upstream_a {
|
|
mod inner {
|
|
pub struct Foo {}
|
|
pub struct Bar {}
|
|
}
|
|
|
|
struct Foo;
|
|
//~^ WARN private item shadows public glob re-export
|
|
|
|
pub use self::inner::*;
|
|
}
|
|
|
|
pub mod upstream_b {
|
|
mod inner {
|
|
pub struct Foo {}
|
|
pub struct Qux {}
|
|
}
|
|
|
|
mod other {
|
|
pub struct Foo;
|
|
}
|
|
|
|
pub use self::inner::*;
|
|
|
|
use self::other::Foo;
|
|
//~^ WARN private item shadows public glob re-export
|
|
}
|
|
|
|
pub mod upstream_c {
|
|
mod no_def_id {
|
|
#![allow(non_camel_case_types)]
|
|
pub struct u8;
|
|
pub struct World;
|
|
}
|
|
|
|
pub use self::no_def_id::*;
|
|
|
|
use std::primitive::u8;
|
|
//~^ WARN private item shadows public glob re-export
|
|
}
|
|
|
|
// Downstream crate
|
|
// mod downstream {
|
|
// fn proof() {
|
|
// let _ = crate::upstream_a::Foo;
|
|
// let _ = crate::upstream_b::Foo;
|
|
// }
|
|
// }
|
|
|
|
pub fn main() {}
|