blob: 642830f24f58adbb4effca6d619bce3c6f2298c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// run-rustfix
#[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
}
|