rust/tests/ui/parser/block-no-opening-brace.stderr

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

56 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-03-04 19:46:13 -06:00
error: expected `{`, found keyword `let`
--> $DIR/block-no-opening-brace.rs:9:9
2020-03-04 19:46:13 -06:00
|
LL | loop
| ---- while parsing this `loop` expression
LL | let x = 0;
| ^^^ expected `{`
|
help: try placing this code inside a block
|
LL | { let x = 0; }
| + +
2020-03-04 19:46:13 -06:00
error: expected `{`, found keyword `let`
--> $DIR/block-no-opening-brace.rs:15:9
2020-03-04 19:46:13 -06:00
|
LL | while true
| ----- ---- this `while` condition successfully parsed
| |
| while parsing the body of this `while` expression
LL | let x = 0;
| ^^^ expected `{`
|
help: try placing this code inside a block
|
LL | { let x = 0; }
| + +
2020-03-04 19:46:13 -06:00
error: expected `{`, found keyword `let`
--> $DIR/block-no-opening-brace.rs:20:9
2020-03-04 19:46:13 -06:00
|
LL | let x = 0;
| ^^^ expected `{`
|
help: try placing this code inside a block
|
LL | { let x = 0; }
| + +
2020-03-04 19:46:13 -06:00
error: expected expression, found reserved keyword `try`
--> $DIR/block-no-opening-brace.rs:24:5
2020-03-04 19:46:13 -06:00
|
LL | try
| ^^^ expected expression
2020-03-04 19:46:13 -06:00
error: expected one of `move`, `|`, or `||`, found keyword `let`
--> $DIR/block-no-opening-brace.rs:30:9
2020-03-04 19:46:13 -06:00
|
LL | async
| - expected one of `move`, `|`, or `||`
LL | let x = 0;
| ^^^ unexpected token
2020-03-04 19:46:13 -06:00
error: aborting due to 5 previous errors
2020-03-04 19:46:13 -06:00