]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/logic_bug.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / logic_bug.stderr
CommitLineData
f20569fa
XL
1error: this boolean expression contains a logic bug
2 --> $DIR/logic_bug.rs:10:13
3 |
4LL | let _ = a && b || a;
5 | ^^^^^^^^^^^ help: it would look like the following: `a`
6 |
7 = note: `-D clippy::logic-bug` implied by `-D warnings`
8help: this expression can be optimized out by applying boolean operations to the outer expression
9 --> $DIR/logic_bug.rs:10:18
10 |
11LL | let _ = a && b || a;
12 | ^
13
14error: this boolean expression contains a logic bug
15 --> $DIR/logic_bug.rs:12:13
16 |
17LL | let _ = false && a;
18 | ^^^^^^^^^^ help: it would look like the following: `false`
19 |
20help: this expression can be optimized out by applying boolean operations to the outer expression
21 --> $DIR/logic_bug.rs:12:22
22 |
23LL | let _ = false && a;
24 | ^
25
26error: this boolean expression contains a logic bug
27 --> $DIR/logic_bug.rs:22:13
28 |
29LL | let _ = a == b && a != b;
30 | ^^^^^^^^^^^^^^^^ help: it would look like the following: `false`
31 |
32help: this expression can be optimized out by applying boolean operations to the outer expression
33 --> $DIR/logic_bug.rs:22:13
34 |
35LL | let _ = a == b && a != b;
36 | ^^^^^^
37
38error: this boolean expression contains a logic bug
39 --> $DIR/logic_bug.rs:23:13
40 |
41LL | let _ = a < b && a >= b;
42 | ^^^^^^^^^^^^^^^ help: it would look like the following: `false`
43 |
44help: this expression can be optimized out by applying boolean operations to the outer expression
45 --> $DIR/logic_bug.rs:23:13
46 |
47LL | let _ = a < b && a >= b;
48 | ^^^^^
49
50error: this boolean expression contains a logic bug
51 --> $DIR/logic_bug.rs:24:13
52 |
53LL | let _ = a > b && a <= b;
54 | ^^^^^^^^^^^^^^^ help: it would look like the following: `false`
55 |
56help: this expression can be optimized out by applying boolean operations to the outer expression
57 --> $DIR/logic_bug.rs:24:13
58 |
59LL | let _ = a > b && a <= b;
60 | ^^^^^
61
62error: aborting due to 5 previous errors
63