]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/double_comparison.rs
New upstream version 1.25.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / double_comparison.rs
1 fn main() {
2 let x = 1;
3 let y = 2;
4 if x == y || x < y {
5 // do something
6 }
7 if x < y || x == y {
8 // do something
9 }
10 if x == y || x > y {
11 // do something
12 }
13 if x > y || x == y {
14 // do something
15 }
16 if x < y || x > y {
17 // do something
18 }
19 if x > y || x < y {
20 // do something
21 }
22 if x <= y && x >= y {
23 // do something
24 }
25 if x >= y && x <= y {
26 // do something
27 }
28 }