1 error: this boolean expression contains a logic bug
2 --> $DIR/overly_complex_bool_expr.rs:11:13
4 LL | let _ = a && b || a;
5 | ^^^^^^^^^^^ help: it would look like the following: `a`
7 = note: `-D clippy::overly-complex-bool-expr` implied by `-D warnings`
8 help: this expression can be optimized out by applying boolean operations to the outer expression
9 --> $DIR/overly_complex_bool_expr.rs:11:18
11 LL | let _ = a && b || a;
14 error: this boolean expression contains a logic bug
15 --> $DIR/overly_complex_bool_expr.rs:13: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/overly_complex_bool_expr.rs:13:22
23 LL | let _ = false && a;
26 error: this boolean expression contains a logic bug
27 --> $DIR/overly_complex_bool_expr.rs:23: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/overly_complex_bool_expr.rs:23:13
35 LL | let _ = a == b && a != b;
38 error: this boolean expression contains a logic bug
39 --> $DIR/overly_complex_bool_expr.rs:24: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/overly_complex_bool_expr.rs:24:13
47 LL | let _ = a < b && a >= b;
50 error: this boolean expression contains a logic bug
51 --> $DIR/overly_complex_bool_expr.rs:25: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/overly_complex_bool_expr.rs:25:13
59 LL | let _ = a > b && a <= b;
62 error: aborting due to 5 previous errors