11error[E0670]: `async fn` is not permitted in Rust 2015
2-   --> $DIR/edition-deny-async-fns-2015.rs:3 :1
2+   --> $DIR/edition-deny-async-fns-2015.rs:5 :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[E0670]: `async fn` is not permitted in Rust 2015
11-   --> $DIR/edition-deny-async-fns-2015.rs:5 :12
11+   --> $DIR/edition-deny-async-fns-2015.rs:7 :12
1212   |
1313LL | fn baz() { async fn foo() {} }
1414   |            ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -17,7 +17,7 @@ LL | fn baz() { async fn foo() {} }
1717   = note: for more on editions, read https://doc.rust-lang.org/edition-guide
1818
1919error[E0670]: `async fn` is not permitted in Rust 2015
20-   --> $DIR/edition-deny-async-fns-2015.rs:7 :1
20+   --> $DIR/edition-deny-async-fns-2015.rs:9 :1
2121   |
2222LL | async fn async_baz() {
2323   | ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -26,7 +26,7 @@ LL | async fn async_baz() {
2626   = note: for more on editions, read https://doc.rust-lang.org/edition-guide
2727
2828error[E0670]: `async fn` is not permitted in Rust 2015
29-   --> $DIR/edition-deny-async-fns-2015.rs:8 :5
29+   --> $DIR/edition-deny-async-fns-2015.rs:10 :5
3030   |
3131LL |     async fn bar() {}
3232   |     ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -35,7 +35,7 @@ LL |     async fn bar() {}
3535   = note: for more on editions, read https://doc.rust-lang.org/edition-guide
3636
3737error[E0670]: `async fn` is not permitted in Rust 2015
38-   --> $DIR/edition-deny-async-fns-2015.rs:14 :5
38+   --> $DIR/edition-deny-async-fns-2015.rs:16 :5
3939   |
4040LL |     async fn foo() {}
4141   |     ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -44,7 +44,7 @@ LL |     async fn foo() {}
4444   = note: for more on editions, read https://doc.rust-lang.org/edition-guide
4545
4646error[E0670]: `async fn` is not permitted in Rust 2015
47-   --> $DIR/edition-deny-async-fns-2015.rs:18 :5
47+   --> $DIR/edition-deny-async-fns-2015.rs:20 :5
4848   |
4949LL |     async fn foo() {}
5050   |     ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -53,7 +53,7 @@ LL |     async fn foo() {}
5353   = note: for more on editions, read https://doc.rust-lang.org/edition-guide
5454
5555error[E0670]: `async fn` is not permitted in Rust 2015
56-   --> $DIR/edition-deny-async-fns-2015.rs:36 :9
56+   --> $DIR/edition-deny-async-fns-2015.rs:38 :9
5757   |
5858LL |         async fn bar() {}
5959   |         ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -62,7 +62,7 @@ LL |         async fn bar() {}
6262   = note: for more on editions, read https://doc.rust-lang.org/edition-guide
6363
6464error[E0670]: `async fn` is not permitted in Rust 2015
65-   --> $DIR/edition-deny-async-fns-2015.rs:26 :9
65+   --> $DIR/edition-deny-async-fns-2015.rs:28 :9
6666   |
6767LL |         async fn foo() {}
6868   |         ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -71,7 +71,7 @@ LL |         async fn foo() {}
7171   = note: for more on editions, read https://doc.rust-lang.org/edition-guide
7272
7373error[E0670]: `async fn` is not permitted in Rust 2015
74-   --> $DIR/edition-deny-async-fns-2015.rs:31 :13
74+   --> $DIR/edition-deny-async-fns-2015.rs:33 :13
7575   |
7676LL |             async fn bar() {}
7777   |             ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -80,7 +80,7 @@ LL |             async fn bar() {}
8080   = note: for more on editions, read https://doc.rust-lang.org/edition-guide
8181
8282error[E0706]: functions in traits cannot be declared `async`
83-   --> $DIR/edition-deny-async-fns-2015.rs:18 :5
83+   --> $DIR/edition-deny-async-fns-2015.rs:20 :5
8484   |
8585LL |     async fn foo() {}
8686   |     -----^^^^^^^^^
0 commit comments