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/block_in_if_condition_closure.rs:19:17
11 = note: `-D clippy::block-in-if-condition-stmt` implied by `-D warnings`
13 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`
14 --> $DIR/block_in_if_condition_closure.rs:28:13
18 LL | | let target = 3;
23 error: aborting due to 2 previous errors