]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error: expected `{`, found `=>` |
0731742a | 2 | --> $DIR/missing-block-hint.rs:3:18 |
ff7c6d11 | 3 | | |
532ac7d7 | 4 | LL | if (foo) => {} |
a1dfa0c6 | 5 | | -- ^^ expected `{` |
0531ce1d | 6 | | | |
dfeec247 | 7 | | this `if` expression has a condition, but no block |
ff7c6d11 XL |
8 | |
9 | error: expected `{`, found `bar` | |
0731742a | 10 | --> $DIR/missing-block-hint.rs:7:13 |
ff7c6d11 | 11 | | |
0531ce1d | 12 | LL | if (foo) |
dfeec247 | 13 | | -- this `if` expression has a condition, but no block |
532ac7d7 | 14 | LL | bar; |
ee023bcb FG |
15 | | ^^^ expected `{` |
16 | | | |
17 | help: try placing this code inside a block | |
18 | | | |
19 | LL | { bar; } | |
20 | | + + | |
ff7c6d11 XL |
21 | |
22 | error: aborting due to 2 previous errors | |
23 |