mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
13 lines
149 B
Rust
13 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;
|
|
}
|