rust/tests/ui/missing/missing-block-hint.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
873 B
Plaintext
Raw Normal View History

error: expected `{`, found `=>`
2018-12-25 15:56:47 +00:00
--> $DIR/missing-block-hint.rs:3:18
|
2019-03-09 12:03:44 +00:00
LL | if (foo) => {}
| ^^ 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 22:14:55 +00:00
help: you might have meant to write a "greater than or equal to" comparison
|
LL | if (foo) >= {}
| ~~
error: expected `{`, found `bar`
2018-12-25 15:56:47 +00:00
--> $DIR/missing-block-hint.rs:7:13
|
2019-03-09 12:03:44 +00:00
LL | bar;
| ^^^ expected `{`
|
note: the `if` expression is missing a block after this condition
--> $DIR/missing-block-hint.rs:6:12
|
LL | if (foo)
| ^^^^^
help: try placing this code inside a block
|
LL | { bar; }
| + +
error: aborting due to 2 previous errors