os-rust/tests/ui/lint/issue-103317.fixed

15 lines
221 B
Rust
Raw Normal View History

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