blob: cdd19515e9a7e77eab69ee5fa962acab28ee0d03 [file] [log] [blame]
#[allow(clippy::no_effect, clippy::unnecessary_operation)]
#[warn(clippy::int_plus_one)]
fn main() {
let x = 1i32;
let y = 0i32;
let _ = x > y; //~ int_plus_one
let _ = x > y; //~ int_plus_one
let _ = y < x; //~ int_plus_one
let _ = y < x; //~ int_plus_one
let _ = x > y; //~ int_plus_one
let _ = x > y; //~ int_plus_one
let _ = y < x; //~ int_plus_one
let _ = y < x; //~ int_plus_one
let _ = x > y; // should be ok
let _ = y < x; // should be ok
}