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!");
39 help: consider using an if/else expression
42 LL | println!("Noooo!");
46 error: you seem to be trying to match on a boolean expression
47 --> $DIR/match_bool.rs:22:5
51 LL | | println!("Noooo!");
56 help: consider using an if/else expression
59 LL | println!("Noooo!");
63 error: you seem to be trying to match on a boolean expression
64 --> $DIR/match_bool.rs:29:5
66 LL | / match test && test {
68 LL | | println!("Noooo!");
73 help: consider using an if/else expression
75 LL | if !(test && test) {
76 LL | println!("Noooo!");
80 error: equal expressions as operands to `&&`
81 --> $DIR/match_bool.rs:29:11
83 LL | match test && test {
86 = note: `#[deny(clippy::eq_op)]` on by default
88 error: you seem to be trying to match on a boolean expression
89 --> $DIR/match_bool.rs:36:5
93 LL | | println!("Noooo!");
99 help: consider using an if/else expression
102 LL | println!("Yes!");
104 LL | println!("Noooo!");
108 error: aborting due to 8 previous errors