]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/double_comparison.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / double_comparison.stderr
CommitLineData
f20569fa
XL
1error: this binary expression can be simplified
2 --> $DIR/double_comparison.rs:6:8
3 |
4LL | if x == y || x < y {
5 | ^^^^^^^^^^^^^^^ help: try: `x <= y`
6 |
7 = note: `-D clippy::double-comparisons` implied by `-D warnings`
8
9error: this binary expression can be simplified
10 --> $DIR/double_comparison.rs:9:8
11 |
12LL | if x < y || x == y {
13 | ^^^^^^^^^^^^^^^ help: try: `x <= y`
14
15error: this binary expression can be simplified
16 --> $DIR/double_comparison.rs:12:8
17 |
18LL | if x == y || x > y {
19 | ^^^^^^^^^^^^^^^ help: try: `x >= y`
20
21error: this binary expression can be simplified
22 --> $DIR/double_comparison.rs:15:8
23 |
24LL | if x > y || x == y {
25 | ^^^^^^^^^^^^^^^ help: try: `x >= y`
26
27error: this binary expression can be simplified
28 --> $DIR/double_comparison.rs:18:8
29 |
30LL | if x < y || x > y {
31 | ^^^^^^^^^^^^^^ help: try: `x != y`
32
33error: this binary expression can be simplified
34 --> $DIR/double_comparison.rs:21:8
35 |
36LL | if x > y || x < y {
37 | ^^^^^^^^^^^^^^ help: try: `x != y`
38
39error: this binary expression can be simplified
40 --> $DIR/double_comparison.rs:24:8
41 |
42LL | if x <= y && x >= y {
43 | ^^^^^^^^^^^^^^^^ help: try: `x == y`
44
45error: this binary expression can be simplified
46 --> $DIR/double_comparison.rs:27:8
47 |
48LL | if x >= y && x <= y {
49 | ^^^^^^^^^^^^^^^^ help: try: `x == y`
50
51error: aborting due to 8 previous errors
52