mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
10 lines
123 B
Rust
10 lines
123 B
Rust
#[allow(clippy::no_effect)]
|
|
#[warn(clippy::erasing_op)]
|
|
fn main() {
|
|
let x: u8 = 0;
|
|
|
|
x * 0;
|
|
0 & x;
|
|
0 / x;
|
|
}
|