mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
13 lines
110 B
Rust
13 lines
110 B
Rust
|
|
||
|
|
||
|
|
||
|
#[allow(no_effect)]
|
||
|
#[warn(erasing_op)]
|
||
|
fn main() {
|
||
|
let x: u8 = 0;
|
||
|
|
||
|
x * 0;
|
||
|
0 & x;
|
||
|
0 / x;
|
||
|
}
|