blob: 102b5656245268f786c2896ded96db576f6291ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
// 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() {}
|