} ...
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'
- --> $DIR/block_in_if_condition.rs:57:17
+ --> $DIR/block_in_if_condition.rs:58:17
|
LL | |x| {
| _________________^
| |_____________^
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'
- --> $DIR/block_in_if_condition.rs:66:13
+ --> $DIR/block_in_if_condition.rs:67:13
|
LL | |x| {
| _____________^
| |_________^
error: this boolean expression can be simplified
- --> $DIR/block_in_if_condition.rs:76:8
+ --> $DIR/block_in_if_condition.rs:77:8
|
LL | if true && x == 3 {
| ^^^^^^^^^^^^^^ help: try: `x == 3`