]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/double_comparison.fixed
Rollup merge of #99474 - aDotInTheVoid:rustdoc-json-noinline-test-cleanup, r=CraftSpider
[rust.git] / src / tools / clippy / tests / ui / double_comparison.fixed
1 // run-rustfix
2
3 fn main() {
4     let x = 1;
5     let y = 2;
6     if x <= y {
7         // do something
8     }
9     if x <= y {
10         // do something
11     }
12     if x >= y {
13         // do something
14     }
15     if x >= y {
16         // do something
17     }
18     if x != y {
19         // do something
20     }
21     if x != y {
22         // do something
23     }
24     if x == y {
25         // do something
26     }
27     if x == y {
28         // do something
29     }
30 }