1 error: missing condition for `if` expression
2 --> $DIR/bad-if-statements.rs:2:7
5 | ^- if this block is the condition of the `if` expression, then it must be followed by another block
7 | expected condition here
9 error: this `if` expression is missing a block after the condition
10 --> $DIR/bad-if-statements.rs:7:5
15 help: this binary operation is possibly unfinished
16 --> $DIR/bad-if-statements.rs:7:8
21 error: expected `{`, found `x`
22 --> $DIR/bad-if-statements.rs:13:13
27 note: the `if` expression is missing a block after this condition
28 --> $DIR/bad-if-statements.rs:13:8
32 help: try placing this code inside a block
37 error: missing condition for `if` expression
38 --> $DIR/bad-if-statements.rs:18:7
41 | ^- if this block is the condition of the `if` expression, then it must be followed by another block
43 | expected condition here
45 error: this `if` expression is missing a block after the condition
46 --> $DIR/bad-if-statements.rs:23:5
48 LL | if true && {} else {}
51 help: this binary operation is possibly unfinished
52 --> $DIR/bad-if-statements.rs:23:8
54 LL | if true && {} else {}
57 error: expected `{`, found `x`
58 --> $DIR/bad-if-statements.rs:29:13
60 LL | if true x else {}
63 note: the `if` expression is missing a block after this condition
64 --> $DIR/bad-if-statements.rs:29:8
66 LL | if true x else {}
68 help: try placing this code inside a block
70 LL | if true { x } else {}
73 error: this `if` expression is missing a block after the condition
74 --> $DIR/bad-if-statements.rs:34:5
79 help: add a block here
80 --> $DIR/bad-if-statements.rs:34:12
85 error: aborting due to 7 previous errors