1 error: this boolean expression can be simplified
2 --> $DIR/match_bool.rs:29: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:4:5
16 | |_____^ help: consider using an `if`/`else` expression: `if test { 0 } else { 42 }`
18 = note: `-D clippy::match-bool` implied by `-D warnings`
20 error: you seem to be trying to match on a boolean expression
21 --> $DIR/match_bool.rs:10:5
23 LL | / match option == 1 {
27 | |_____^ help: consider using an `if`/`else` expression: `if option == 1 { 1 } else { 0 }`
29 error: you seem to be trying to match on a boolean expression
30 --> $DIR/match_bool.rs:15:5
35 LL | | println!("Noooo!");
40 help: consider using an `if`/`else` expression
43 LL | println!("Noooo!");
47 error: you seem to be trying to match on a boolean expression
48 --> $DIR/match_bool.rs:22:5
52 LL | | println!("Noooo!");
58 help: consider using an `if`/`else` expression
61 LL | println!("Noooo!");
65 error: you seem to be trying to match on a boolean expression
66 --> $DIR/match_bool.rs:29:5
68 LL | / match test && test {
70 LL | | println!("Noooo!");
76 help: consider using an `if`/`else` expression
78 LL | if !(test && test) {
79 LL | println!("Noooo!");
83 error: equal expressions as operands to `&&`
84 --> $DIR/match_bool.rs:29:11
86 LL | match test && test {
89 = note: `#[deny(clippy::eq_op)]` on by default
91 error: you seem to be trying to match on a boolean expression
92 --> $DIR/match_bool.rs:36:5
96 LL | | println!("Noooo!");
103 help: consider using an `if`/`else` expression
106 LL | println!("Yes!");
108 LL | println!("Noooo!");
112 error: aborting due to 8 previous errors