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
|
|
|
|
|
2020-03-07 02:49:46 -06:00
|
|
|
LL | let x = 0;
|
|
|
|
| ^^^-------
|
|
|
|
| |
|
|
|
|
| expected `{`
|
|
|
|
| help: try placing this code inside a block: `{ 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
|
|
|
|
|
2020-03-07 02:49:46 -06:00
|
|
|
LL | let x = 0;
|
|
|
|
| ^^^-------
|
|
|
|
| |
|
|
|
|
| expected `{`
|
|
|
|
| help: try placing this code inside a block: `{ 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;
|
|
|
|
| ^^^-------
|
|
|
|
| |
|
|
|
|
| expected `{`
|
|
|
|
| help: try placing this code inside a block: `{ 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
|
|
|
|
|
|
|
error[E0658]: async closures are unstable
|
2020-03-07 02:49:46 -06:00
|
|
|
--> $DIR/block-no-opening-brace.rs:29:5
|
2020-03-04 19:46:13 -06:00
|
|
|
|
|
2020-03-07 02:49:46 -06:00
|
|
|
LL | async
|
|
|
|
| ^^^^^
|
2020-03-04 19:46:13 -06:00
|
|
|
|
|
|
|
|
= note: see issue #62290 <https://github.com/rust-lang/rust/issues/62290> for more information
|
|
|
|
= help: add `#![feature(async_closure)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|