1 error: in an `if` condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let`
2 --> $DIR/blocks_in_if_conditions.rs:24:5
10 = note: `-D clippy::blocks-in-if-conditions` implied by `-D warnings`
19 error: omit braces around single expression condition
20 --> $DIR/blocks_in_if_conditions.rs:35:8
22 LL | if { true } { 6 } else { 10 }
23 | ^^^^^^^^ help: try: `true`
25 error: this boolean expression can be simplified
26 --> $DIR/blocks_in_if_conditions.rs:40:8
28 LL | if true && x == 3 { 6 } else { 10 }
29 | ^^^^^^^^^^^^^^ help: try: `x == 3`
31 = note: `-D clippy::nonminimal-bool` implied by `-D warnings`
33 error: aborting due to 3 previous errors