summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-pub-unreachable-for-nested-glob.rs
blob: 2df6d08e7aeb6f09a0bd6a70b1bb0e32cc42f57c (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
// check-pass

#![deny(unreachable_pub)]

pub use self::m1::*;

mod m1 {
    pub use self::m2::*;

    mod m2 {
        pub struct Item1;
        pub struct Item2;
    }
}


pub use self::o1::{ Item42, Item24 };

mod o1 {
    pub use self::o2::{ Item42, Item24 };

    mod o2 {
        pub struct Item42;
        pub struct Item24;
    }
}

fn main() {}