]> git.lizzy.rs Git - rust.git/blob - tests/ui/double_comparison.stderr
Merge pull request #2984 from flip1995/single_char_pattern
[rust.git] / tests / ui / double_comparison.stderr
1 error: This binary expression can be simplified
2  --> $DIR/double_comparison.rs:4:8
3   |
4 4 |     if x == y || x < y {
5   |        ^^^^^^^^^^^^^^^ help: try: `x <= y`
6   |
7   = note: `-D double-comparisons` implied by `-D warnings`
8
9 error: This binary expression can be simplified
10  --> $DIR/double_comparison.rs:7:8
11   |
12 7 |     if x < y || x == y {
13   |        ^^^^^^^^^^^^^^^ help: try: `x <= y`
14
15 error: This binary expression can be simplified
16   --> $DIR/double_comparison.rs:10:8
17    |
18 10 |     if x == y || x > y {
19    |        ^^^^^^^^^^^^^^^ help: try: `x >= y`
20
21 error: This binary expression can be simplified
22   --> $DIR/double_comparison.rs:13:8
23    |
24 13 |     if x > y || x == y {
25    |        ^^^^^^^^^^^^^^^ help: try: `x >= y`
26
27 error: This binary expression can be simplified
28   --> $DIR/double_comparison.rs:16:8
29    |
30 16 |     if x < y || x > y {
31    |        ^^^^^^^^^^^^^^ help: try: `x != y`
32
33 error: This binary expression can be simplified
34   --> $DIR/double_comparison.rs:19:8
35    |
36 19 |     if x > y || x < y {
37    |        ^^^^^^^^^^^^^^ help: try: `x != y`
38
39 error: This binary expression can be simplified
40   --> $DIR/double_comparison.rs:22:8
41    |
42 22 |     if x <= y && x >= y {
43    |        ^^^^^^^^^^^^^^^^ help: try: `x == y`
44
45 error: This binary expression can be simplified
46   --> $DIR/double_comparison.rs:25:8
47    |
48 25 |     if x >= y && x <= y {
49    |        ^^^^^^^^^^^^^^^^ help: try: `x == y`
50
51 error: aborting due to 8 previous errors
52