rust-clippy/tests/ui/double_comparison.fixed
2019-01-08 21:46:39 +01:00

30 lines
428 B
Rust

// run-rustfix
fn main() {
let x = 1;
let y = 2;
if x <= y {
// do something
}
if x <= y {
// do something
}
if x >= y {
// do something
}
if x >= y {
// do something
}
if x != y {
// do something
}
if x != y {
// do something
}
if x == y {
// do something
}
if x == y {
// do something
}
}