mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
16 lines
288 B
Rust
16 lines
288 B
Rust
|
#[allow(clippy::no_effect, clippy::unnecessary_operation)]
|
||
|
#[warn(clippy::int_plus_one)]
|
||
|
fn main() {
|
||
|
let x = 1i32;
|
||
|
let y = 0i32;
|
||
|
|
||
|
let _ = x > y;
|
||
|
let _ = y < x;
|
||
|
|
||
|
let _ = x > y;
|
||
|
let _ = y < x;
|
||
|
|
||
|
let _ = x > y; // should be ok
|
||
|
let _ = y < x; // should be ok
|
||
|
}
|