]> git.lizzy.rs Git - rust.git/blob - tests/ui/double_comparison.rs
Merge pull request #2984 from flip1995/single_char_pattern
[rust.git] / 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 }