]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/block-no-opening-brace.stderr
Merge commit '03f01bbe901d60b71cf2c5ec766aef5e532ab79d' into update_cg_clif-2020...
[rust.git] / src / test / ui / parser / block-no-opening-brace.stderr
1 error: expected `{`, found keyword `let`
2   --> $DIR/block-no-opening-brace.rs:9:9
3    |
4 LL |         let x = 0;
5    |         ^^^-------
6    |         |
7    |         expected `{`
8    |         help: try placing this code inside a block: `{ let x = 0; }`
9
10 error: expected `{`, found keyword `let`
11   --> $DIR/block-no-opening-brace.rs:15:9
12    |
13 LL |         let x = 0;
14    |         ^^^-------
15    |         |
16    |         expected `{`
17    |         help: try placing this code inside a block: `{ let x = 0; }`
18
19 error: expected `{`, found keyword `let`
20   --> $DIR/block-no-opening-brace.rs:20:9
21    |
22 LL |         let x = 0;
23    |         ^^^-------
24    |         |
25    |         expected `{`
26    |         help: try placing this code inside a block: `{ let x = 0; }`
27
28 error: expected expression, found reserved keyword `try`
29   --> $DIR/block-no-opening-brace.rs:24:5
30    |
31 LL |     try
32    |     ^^^ expected expression
33
34 error: expected one of `move`, `|`, or `||`, found keyword `let`
35   --> $DIR/block-no-opening-brace.rs:30:9
36    |
37 LL |     async
38    |          - expected one of `move`, `|`, or `||`
39 LL |         let x = 0;
40    |         ^^^ unexpected token
41
42 error[E0658]: async closures are unstable
43   --> $DIR/block-no-opening-brace.rs:29:5
44    |
45 LL |     async
46    |     ^^^^^
47    |
48    = note: see issue #62290 <https://github.com/rust-lang/rust/issues/62290> for more information
49    = help: add `#![feature(async_closure)]` to the crate attributes to enable
50
51 error: aborting due to 6 previous errors
52
53 For more information about this error, try `rustc --explain E0658`.