rust-clippy/tests/ui-toml/verbose_bit_mask/verbose_bit_mask.fixed
2023-09-24 15:19:18 +02:00

7 lines
181 B
Rust

#![warn(clippy::verbose_bit_mask)]
fn main() {
let v: i32 = 0;
let _ = v & 0b11111 == 0;
let _ = v.trailing_zeros() >= 6;
//~^ ERROR: bit mask could be simplified
}