2017-12-10 22:47:55 +03:00
|
|
|
error: expected `{`, found `=>`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/missing-block-hint.rs:3:18
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | if (foo) => {}
|
2018-10-28 16:05:07 -07:00
|
|
|
| -- ^^ expected `{`
|
2018-02-23 19:38:36 -08:00
|
|
|
| |
|
2019-12-06 23:23:30 +01:00
|
|
|
| this `if` expression has a condition, but no block
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
|
|
error: expected `{`, found `bar`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/missing-block-hint.rs:7:13
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-18 16:59:33 -08:00
|
|
|
LL | if (foo)
|
2019-12-06 23:23:30 +01:00
|
|
|
| -- this `if` expression has a condition, but no block
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | bar;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^-
|
|
|
|
| |
|
2018-10-28 16:05:07 -07:00
|
|
|
| expected `{`
|
2017-12-10 22:47:55 +03:00
|
|
|
| help: try placing this code inside a block: `{ bar; }`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|