mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
12 lines
149 B
Rust
12 lines
149 B
Rust
#![feature(tool_lints)]
|
|
|
|
|
|
#[allow(clippy::no_effect)]
|
|
#[warn(clippy::erasing_op)]
|
|
fn main() {
|
|
let x: u8 = 0;
|
|
|
|
x * 0;
|
|
0 & x;
|
|
0 / x;
|
|
}
|