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) => {}
|
2022-05-27 21:58:48 -07:00
|
|
|
| ^^ expected `{`
|
|
|
|
|
|
|
|
|
note: the `if` expression is missing a block after this condition
|
|
|
|
--> $DIR/missing-block-hint.rs:3:12
|
|
|
|
|
|
|
|
|
LL | if (foo) => {}
|
|
|
|
| ^^^^^
|
2023-10-27 15:14:55 -07:00
|
|
|
help: you might have meant to write a "greater than or equal to" comparison
|
|
|
|
|
|
|
|
|
LL | if (foo) >= {}
|
|
|
|
| ~~
|
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
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | bar;
|
2022-01-12 20:43:24 +00:00
|
|
|
| ^^^ expected `{`
|
|
|
|
|
|
2022-05-27 21:58:48 -07: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 20:43:24 +00:00
|
|
|
help: try placing this code inside a block
|
|
|
|
|
|
|
|
|
LL | { bar; }
|
|
|
|
| + +
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|