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

pub mod outer {
    mod inner {
        pub struct Test {}
    }
    // should be linted
    pub use inner::Test;
}

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