summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/pub_use.rs
blob: aef947e406a68f5e234a19e7560261f9e5c42e38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![warn(clippy::pub_use)]
#![allow(unused_imports)]
#![no_main]

pub mod outer {
    mod inner {
        pub struct Test {}
    }
    // should be linted
    pub use inner::Test;
    //~^ ERROR: using `pub use`
}

// should not be linted
use std::fmt;