rust-clippy/tests/ui/erasing_op.rs
2019-01-08 21:46:39 +01:00

9 lines
123 B
Rust

#[allow(clippy::no_effect)]
#[warn(clippy::erasing_op)]
fn main() {
let x: u8 = 0;
x * 0;
0 & x;
0 / x;
}