2020-03-04 19:46:13 -06:00
|
|
|
error: expected `{`, found keyword `let`
|
2020-03-07 02:49:46 -06:00
|
|
|
--> $DIR/block-no-opening-brace.rs:9:9
|
2020-03-04 19:46:13 -06:00
|
|
|
|
|
2022-01-12 14:43:24 -06:00
|
|
|
LL | loop
|
|
|
|
| ---- while parsing this `loop` expression
|
2020-03-07 02:49:46 -06:00
|
|
|
LL | let x = 0;
|
2022-01-12 14:43:24 -06:00
|
|
|
| ^^^ 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`
|
2020-03-07 02:49:46 -06:00
|
|
|
--> $DIR/block-no-opening-brace.rs:15:9
|
2020-03-04 19:46:13 -06:00
|
|
|
|
|
2022-01-12 14:43:24 -06:00
|
|
|
LL | while true
|
|
|
|
| ----- ---- this `while` condition successfully parsed
|
|
|
|
| |
|
|
|
|
| while parsing the body of this `while` expression
|
2020-03-07 02:49:46 -06:00
|
|
|
LL | let x = 0;
|
2022-01-12 14:43:24 -06:00
|
|
|
| ^^^ 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`
|
2020-03-07 02:49:46 -06:00
|
|
|
--> $DIR/block-no-opening-brace.rs:20:9
|
2020-03-04 19:46:13 -06:00
|
|
|
|
|
2020-03-07 02:49:46 -06:00
|
|
|
LL | let x = 0;
|
2022-01-12 14:43:24 -06:00
|
|
|
| ^^^ 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`
|
2020-03-07 02:49:46 -06:00
|
|
|
--> $DIR/block-no-opening-brace.rs:24:5
|
2020-03-04 19:46:13 -06:00
|
|
|
|
|
2020-03-07 02:49:46 -06:00
|
|
|
LL | try
|
|
|
|
| ^^^ expected expression
|
2020-03-04 19:46:13 -06:00
|
|
|
|
|
|
|
error: expected one of `move`, `|`, or `||`, found keyword `let`
|
2020-03-07 02:49:46 -06:00
|
|
|
--> $DIR/block-no-opening-brace.rs:30:9
|
2020-03-04 19:46:13 -06:00
|
|
|
|
|
2020-03-07 02:49:46 -06:00
|
|
|
LL | async
|
|
|
|
| - expected one of `move`, `|`, or `||`
|
|
|
|
LL | let x = 0;
|
|
|
|
| ^^^ unexpected token
|
2020-03-04 19:46:13 -06:00
|
|
|
|
2020-09-09 17:16:34 -05:00
|
|
|
error: aborting due to 5 previous errors
|
2020-03-04 19:46:13 -06:00
|
|
|
|