summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/issue-103317.fixed
blob: 5a987423e5b95ab6b897eb6efa679d815cbaa43e (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(crate) enum T {
        //~^ WARN unreachable `pub` item
        A(u8),
        X { a: f32, b: () },
    }
}

fn main() {}