11error[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
33 |
44LL | async fn foo() {
55 | ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -8,7 +8,7 @@ LL | async fn foo() {
88 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
99
1010error: expected identifier, found keyword `let`
11- --> $DIR/async-block-2015.rs:11 :9
11+ --> $DIR/async-block-2015.rs:12 :9
1212 |
1313LL | let y = async {
1414 | ----- `async` blocks are only allowed in Rust 2018 or later
@@ -19,7 +19,7 @@ LL | let x = 42;
1919 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
2020
2121error: expected identifier, found `42`
22- --> $DIR/async-block-2015.rs:19 :9
22+ --> $DIR/async-block-2015.rs:20 :9
2323 |
2424LL | let z = async {
2525 | ----- `async` blocks are only allowed in Rust 2018 or later
@@ -30,7 +30,7 @@ LL | 42
3030 = note: for more on editions, read https://doc.rust-lang.org/edition-guide
3131
3232error[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
3434 |
3535LL | let x = async {};
3636 | ^^^^^ `async` blocks are only allowed in Rust 2018 or later
0 commit comments