1
1
error[E0670]: `async fn` is not permitted in Rust 2015
2
- --> $DIR/async-block-2015.rs:1 :1
2
+ --> $DIR/async-block-2015.rs:2 :1
3
3
|
4
4
LL | async fn foo() {
5
5
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -8,7 +8,7 @@ LL | async fn foo() {
8
8
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
9
9
10
10
error: expected identifier, found keyword `let`
11
- --> $DIR/async-block-2015.rs:11 :9
11
+ --> $DIR/async-block-2015.rs:12 :9
12
12
|
13
13
LL | let y = async {
14
14
| ----- `async` blocks are only allowed in Rust 2018 or later
@@ -19,7 +19,7 @@ LL | let x = 42;
19
19
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
20
20
21
21
error: expected identifier, found `42`
22
- --> $DIR/async-block-2015.rs:19 :9
22
+ --> $DIR/async-block-2015.rs:20 :9
23
23
|
24
24
LL | let z = async {
25
25
| ----- `async` blocks are only allowed in Rust 2018 or later
@@ -30,7 +30,7 @@ LL | 42
30
30
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
31
31
32
32
error[E0422]: cannot find struct, variant or union type `async` in this scope
33
- --> $DIR/async-block-2015.rs:7 :13
33
+ --> $DIR/async-block-2015.rs:8 :13
34
34
|
35
35
LL | let x = async {};
36
36
| ^^^^^ `async` blocks are only allowed in Rust 2018 or later
0 commit comments