1 error: this boolean expression can be simplified
2 --> $DIR/nonminimal_bool.rs:10:13
5 | ^^^^^ help: try: `false`
7 = note: `-D clippy::nonminimal-bool` implied by `-D warnings`
9 error: this boolean expression can be simplified
10 --> $DIR/nonminimal_bool.rs:11:13
13 | ^^^^^^ help: try: `true`
15 error: this boolean expression can be simplified
16 --> $DIR/nonminimal_bool.rs:12:13
21 error: this boolean expression can be simplified
22 --> $DIR/nonminimal_bool.rs:13:13
24 LL | let _ = false || a;
25 | ^^^^^^^^^^ help: try: `a`
27 error: this boolean expression can be simplified
28 --> $DIR/nonminimal_bool.rs:17:13
30 LL | let _ = !(!a && b);
31 | ^^^^^^^^^^ help: try: `a || !b`
33 error: this boolean expression can be simplified
34 --> $DIR/nonminimal_bool.rs:18:13
36 LL | let _ = !(!a || b);
37 | ^^^^^^^^^^ help: try: `a && !b`
39 error: this boolean expression can be simplified
40 --> $DIR/nonminimal_bool.rs:19:13
42 LL | let _ = !a && !(b && c);
43 | ^^^^^^^^^^^^^^^ help: try: `!(a || b && c)`
45 error: this boolean expression can be simplified
46 --> $DIR/nonminimal_bool.rs:27:13
48 LL | let _ = a == b && c == 5 && a == b;
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
53 LL | let _ = !(a != b || c != 5);
55 LL | let _ = a == b && c == 5;
58 error: this boolean expression can be simplified
59 --> $DIR/nonminimal_bool.rs:28:13
61 LL | let _ = a == b || c == 5 || a == b;
62 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
66 LL | let _ = !(a != b && c != 5);
68 LL | let _ = a == b || c == 5;
71 error: this boolean expression can be simplified
72 --> $DIR/nonminimal_bool.rs:29:13
74 LL | let _ = a == b && c == 5 && b == a;
75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
79 LL | let _ = !(a != b || c != 5);
81 LL | let _ = a == b && c == 5;
84 error: this boolean expression can be simplified
85 --> $DIR/nonminimal_bool.rs:30:13
87 LL | let _ = a != b || !(a != b || c == d);
88 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92 LL | let _ = !(a == b && c == d);
94 LL | let _ = a != b || c != d;
97 error: this boolean expression can be simplified
98 --> $DIR/nonminimal_bool.rs:31:13
100 LL | let _ = a != b && !(a != b && c == d);
101 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
105 LL | let _ = !(a == b || c == d);
106 | ~~~~~~~~~~~~~~~~~~~
107 LL | let _ = a != b && c != d;
110 error: aborting due to 12 previous errors