1 error: this boolean expression can be simplified
2 --> $DIR/match_bool.rs:31:11
4 LL | match test && test {
5 | ^^^^^^^^^^^^ help: try: `test`
7 = note: `-D clippy::nonminimal-bool` implied by `-D warnings`
9 error: you seem to be trying to match on a boolean expression
10 --> $DIR/match_bool.rs:6:5
16 | |_____^ help: consider using an `if`/`else` expression: `if test { 0 } else { 42 }`
18 note: the lint level is defined here
19 --> $DIR/match_bool.rs:1:9
21 LL | #![deny(clippy::match_bool)]
24 error: you seem to be trying to match on a boolean expression
25 --> $DIR/match_bool.rs:12:5
27 LL | / match option == 1 {
31 | |_____^ help: consider using an `if`/`else` expression: `if option == 1 { 1 } else { 0 }`
33 error: you seem to be trying to match on a boolean expression
34 --> $DIR/match_bool.rs:17:5
39 LL | | println!("Noooo!");
44 help: consider using an `if`/`else` expression
47 LL | println!("Noooo!");
51 error: you seem to be trying to match on a boolean expression
52 --> $DIR/match_bool.rs:24:5
56 LL | | println!("Noooo!");
62 help: consider using an `if`/`else` expression
65 LL | println!("Noooo!");
69 error: you seem to be trying to match on a boolean expression
70 --> $DIR/match_bool.rs:31:5
72 LL | / match test && test {
74 LL | | println!("Noooo!");
80 help: consider using an `if`/`else` expression
82 LL | if !(test && test) {
83 LL | println!("Noooo!");
87 error: equal expressions as operands to `&&`
88 --> $DIR/match_bool.rs:31:11
90 LL | match test && test {
93 = note: `#[deny(clippy::eq_op)]` on by default
95 error: you seem to be trying to match on a boolean expression
96 --> $DIR/match_bool.rs:38:5
100 LL | | println!("Noooo!");
107 help: consider using an `if`/`else` expression
110 LL | println!("Yes!");
112 LL | println!("Noooo!");
116 error: aborting due to 8 previous errors