rust/tests/ui-toml/verbose_bit_mask/verbose_bit_mask.rs

8 lines
175 B
Rust
Raw Normal View History

2023-09-24 07:56:40 -05:00
#![warn(clippy::verbose_bit_mask)]
fn main() {
let v: i32 = 0;
let _ = v & 0b11111 == 0;
let _ = v & 0b111111 == 0;
//~^ ERROR: bit mask could be simplified
}