2022-10-21 04:50:28 -05:00
|
|
|
// check-pass
|
2022-10-29 10:44:24 -05:00
|
|
|
// run-rustfix
|
2022-10-21 04:50:28 -05:00
|
|
|
|
|
|
|
#[warn(unreachable_pub)]
|
|
|
|
mod inner {
|
2022-10-29 10:44:24 -05:00
|
|
|
#[allow(unused)]
|
2022-10-21 04:50:28 -05:00
|
|
|
pub enum T {
|
|
|
|
//~^ WARN unreachable `pub` item
|
|
|
|
A(u8),
|
|
|
|
X { a: f32, b: () },
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|