1 error: equality checks against true are unnecessary
2 --> $DIR/bool_comparison.rs:7:8
4 7 | if x == true { "yes" } else { "no" };
5 | ^^^^^^^^^ help: try simplifying it as shown: `x`
7 = note: `-D clippy::bool-comparison` implied by `-D warnings`
9 error: equality checks against false can be replaced by a negation
10 --> $DIR/bool_comparison.rs:8:8
12 8 | if x == false { "yes" } else { "no" };
13 | ^^^^^^^^^^ help: try simplifying it as shown: `!x`
15 error: equality checks against true are unnecessary
16 --> $DIR/bool_comparison.rs:9:8
18 9 | if true == x { "yes" } else { "no" };
19 | ^^^^^^^^^ help: try simplifying it as shown: `x`
21 error: equality checks against false can be replaced by a negation
22 --> $DIR/bool_comparison.rs:10:8
24 10 | if false == x { "yes" } else { "no" };
25 | ^^^^^^^^^^ help: try simplifying it as shown: `!x`
27 error: aborting due to 4 previous errors