]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-pub-unreachable-for-nested-glob.rs
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / lint-pub-unreachable-for-nested-glob.rs
1 // check-pass
2
3 #![deny(unreachable_pub)]
4
5 pub use self::m1::*;
6
7 mod m1 {
8     pub use self::m2::*;
9
10     mod m2 {
11         pub struct Item1;
12         pub struct Item2;
13     }
14 }
15
16
17 pub use self::o1::{ Item42, Item24 };
18
19 mod o1 {
20     pub use self::o2::{ Item42, Item24 };
21
22     mod o2 {
23         pub struct Item42;
24         pub struct Item24;
25     }
26 }
27
28 fn main() {}