]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/issue-103317.rs
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / issue-103317.rs
1 // check-pass
2 // run-rustfix
3
4 #[warn(unreachable_pub)]
5 mod inner {
6     #[allow(unused)]
7     pub enum T {
8         //~^ WARN unreachable `pub` item
9         A(u8),
10         X { a: f32, b: () },
11     }
12 }
13
14 fn main() {}