summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/issue-103317.rs
blob: c2ba939e13c6f95bb26bf80c0f7a981b9cc8249a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass
// run-rustfix

#[warn(unreachable_pub)]
mod inner {
    #[allow(unused)]
    pub enum T {
        //~^ WARN unreachable `pub` item
        A(u8),
        X { a: f32, b: () },
    }
}

fn main() {}