summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/pub-reexport-empty.rs
blob: 2a46f4c8de86ccbeeae344885fa0178eef5b3b22 (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
#![deny(unused_imports)]

mod a {}

pub use a::*;
//~^ ERROR: unused import: `a::*`

mod b {
    mod c {
        #[derive(Clone)]
        pub struct D;
    }
    pub use self::c::*; // don't show unused import lint
}

pub use b::*; // don't show unused import lint

mod d {
    const D: i32 = 1;
}

pub use d::*;
//~^ ERROR: unused import: `d::*`

fn main() {}