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:26: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:37:8
23 | ^^^^^^^^ help: try: `true`
25 error: this boolean expression can be simplified
26 --> $DIR/blocks_in_if_conditions.rs:46:8
28 LL | if true && x == 3 {
29 | ^^^^^^^^^^^^^^ help: try: `x == 3`
31 = note: `-D clippy::nonminimal-bool` implied by `-D warnings`
33 error: aborting due to 3 previous errors