fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.5 KiB53 linesraw
1error: expected `{`, found keyword `let`
2  --> $DIR/block-no-opening-brace.rs:9:9
3   |
4LL |         let x = 0;
5   |         ^^^-------
6   |         |
7   |         expected `{`
8   |         help: try placing this code inside a block: `{ let x = 0; }`
9
10error: expected `{`, found keyword `let`
11  --> $DIR/block-no-opening-brace.rs:15:9
12   |
13LL |         let x = 0;
14   |         ^^^-------
15   |         |
16   |         expected `{`
17   |         help: try placing this code inside a block: `{ let x = 0; }`
18
19error: expected `{`, found keyword `let`
20  --> $DIR/block-no-opening-brace.rs:20:9
21   |
22LL |         let x = 0;
23   |         ^^^-------
24   |         |
25   |         expected `{`
26   |         help: try placing this code inside a block: `{ let x = 0; }`
27
28error: expected expression, found reserved keyword `try`
29  --> $DIR/block-no-opening-brace.rs:24:5
30   |
31LL |     try
32   |     ^^^ expected expression
33
34error: expected one of `move`, `|`, or `||`, found keyword `let`
35  --> $DIR/block-no-opening-brace.rs:30:9
36   |
37LL |     async
38   |          - expected one of `move`, `|`, or `||`
39LL |         let x = 0;
40   |         ^^^ unexpected token
41
42error[E0658]: async closures are unstable
43  --> $DIR/block-no-opening-brace.rs:29:5
44   |
45LL |     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
51error: aborting due to 6 previous errors
52
53For more information about this error, try `rustc --explain E0658`.