2023-04-23 06:03:09 -05:00
|
|
|
//@run-rustfix
|
2019-08-18 02:24:30 -05:00
|
|
|
|
|
|
|
#[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
|
|
|
|
}
|