2017-12-10 13:47:55 -06:00
|
|
|
error: expected `{`, found `=>`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/missing-block-hint.rs:3:18
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | if (foo) => {}
|
2022-05-27 23:58:48 -05:00
|
|
|
| ^^ expected `{`
|
|
|
|
|
|
|
|
|
note: the `if` expression is missing a block after this condition
|
|
|
|
--> $DIR/missing-block-hint.rs:3:12
|
|
|
|
|
|
|
|
|
LL | if (foo) => {}
|
|
|
|
| ^^^^^
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: expected `{`, found `bar`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/missing-block-hint.rs:7:13
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | bar;
|
2022-01-12 14:43:24 -06:00
|
|
|
| ^^^ expected `{`
|
|
|
|
|
|
2022-05-27 23:58:48 -05:00
|
|
|
note: the `if` expression is missing a block after this condition
|
|
|
|
--> $DIR/missing-block-hint.rs:6:12
|
|
|
|
|
|
|
|
|
LL | if (foo)
|
|
|
|
| ^^^^^
|
2022-01-12 14:43:24 -06:00
|
|
|
help: try placing this code inside a block
|
|
|
|
|
|
|
|
|
LL | { bar; }
|
|
|
|
| + +
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|