1 error: this boolean expression contains a logic bug
2 --> $DIR/logic_bug.rs:10:13
4 LL | let _ = a && b || a;
5 | ^^^^^^^^^^^ help: it would look like the following: `a`
7 = note: `-D clippy::logic-bug` implied by `-D warnings`
8 help: this expression can be optimized out by applying boolean operations to the outer expression
9 --> $DIR/logic_bug.rs:10:18
11 LL | let _ = a && b || a;
14 error: this boolean expression contains a logic bug
15 --> $DIR/logic_bug.rs:12:13
17 LL | let _ = false && a;
18 | ^^^^^^^^^^ help: it would look like the following: `false`
20 help: this expression can be optimized out by applying boolean operations to the outer expression
21 --> $DIR/logic_bug.rs:12:22
23 LL | let _ = false && a;
26 error: this boolean expression contains a logic bug
27 --> $DIR/logic_bug.rs:22:13
29 LL | let _ = a == b && a != b;
30 | ^^^^^^^^^^^^^^^^ help: it would look like the following: `false`
32 help: this expression can be optimized out by applying boolean operations to the outer expression
33 --> $DIR/logic_bug.rs:22:13
35 LL | let _ = a == b && a != b;
38 error: this boolean expression contains a logic bug
39 --> $DIR/logic_bug.rs:23:13
41 LL | let _ = a < b && a >= b;
42 | ^^^^^^^^^^^^^^^ help: it would look like the following: `false`
44 help: this expression can be optimized out by applying boolean operations to the outer expression
45 --> $DIR/logic_bug.rs:23:13
47 LL | let _ = a < b && a >= b;
50 error: this boolean expression contains a logic bug
51 --> $DIR/logic_bug.rs:24:13
53 LL | let _ = a > b && a <= b;
54 | ^^^^^^^^^^^^^^^ help: it would look like the following: `false`
56 help: this expression can be optimized out by applying boolean operations to the outer expression
57 --> $DIR/logic_bug.rs:24:13
59 LL | let _ = a > b && a <= b;
62 error: aborting due to 5 previous errors