mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
7 lines
175 B
Rust
7 lines
175 B
Rust
#![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
|
|
}
|