rust-clippy/tests/ui/if_not_else_bittest.rs
2023-06-25 23:39:38 +02:00

11 lines
232 B
Rust

#![deny(clippy::if_not_else)]
fn show_permissions(flags: u32) {
if flags & 0x0F00 != 0 {
println!("Has the 0x0F00 permission.");
} else {
println!("The 0x0F00 permission is missing.");
}
}
fn main() {}