@@ -3,54 +3,90 @@ error[E0670]: `async fn` is not permitted in the 2015 edition
33 |
44LL | async fn foo() {}
55 | ^^^^^
6+ |
7+ = note: to use `async fn`, switch to Rust 2018
8+ = help: set `edition = "2018"` in `Cargo.toml`
9+ = note: for more on editions, read https://doc.rust-lang.org/edition-guide
610
711error[E0670]: `async fn` is not permitted in the 2015 edition
812 --> $DIR/edition-deny-async-fns-2015.rs:5:12
913 |
1014LL | fn baz() { async fn foo() {} }
1115 | ^^^^^
16+ |
17+ = note: to use `async fn`, switch to Rust 2018
18+ = help: set `edition = "2018"` in `Cargo.toml`
19+ = note: for more on editions, read https://doc.rust-lang.org/edition-guide
1220
1321error[E0670]: `async fn` is not permitted in the 2015 edition
1422 --> $DIR/edition-deny-async-fns-2015.rs:7:1
1523 |
1624LL | async fn async_baz() {
1725 | ^^^^^
26+ |
27+ = note: to use `async fn`, switch to Rust 2018
28+ = help: set `edition = "2018"` in `Cargo.toml`
29+ = note: for more on editions, read https://doc.rust-lang.org/edition-guide
1830
1931error[E0670]: `async fn` is not permitted in the 2015 edition
2032 --> $DIR/edition-deny-async-fns-2015.rs:8:5
2133 |
2234LL | async fn bar() {}
2335 | ^^^^^
36+ |
37+ = note: to use `async fn`, switch to Rust 2018
38+ = help: set `edition = "2018"` in `Cargo.toml`
39+ = note: for more on editions, read https://doc.rust-lang.org/edition-guide
2440
2541error[E0670]: `async fn` is not permitted in the 2015 edition
2642 --> $DIR/edition-deny-async-fns-2015.rs:14:5
2743 |
2844LL | async fn foo() {}
2945 | ^^^^^
46+ |
47+ = note: to use `async fn`, switch to Rust 2018
48+ = help: set `edition = "2018"` in `Cargo.toml`
49+ = note: for more on editions, read https://doc.rust-lang.org/edition-guide
3050
3151error[E0670]: `async fn` is not permitted in the 2015 edition
3252 --> $DIR/edition-deny-async-fns-2015.rs:18:5
3353 |
3454LL | async fn foo() {}
3555 | ^^^^^
56+ |
57+ = note: to use `async fn`, switch to Rust 2018
58+ = help: set `edition = "2018"` in `Cargo.toml`
59+ = note: for more on editions, read https://doc.rust-lang.org/edition-guide
3660
3761error[E0670]: `async fn` is not permitted in the 2015 edition
3862 --> $DIR/edition-deny-async-fns-2015.rs:36:9
3963 |
4064LL | async fn bar() {}
4165 | ^^^^^
66+ |
67+ = note: to use `async fn`, switch to Rust 2018
68+ = help: set `edition = "2018"` in `Cargo.toml`
69+ = note: for more on editions, read https://doc.rust-lang.org/edition-guide
4270
4371error[E0670]: `async fn` is not permitted in the 2015 edition
4472 --> $DIR/edition-deny-async-fns-2015.rs:26:9
4573 |
4674LL | async fn foo() {}
4775 | ^^^^^
76+ |
77+ = note: to use `async fn`, switch to Rust 2018
78+ = help: set `edition = "2018"` in `Cargo.toml`
79+ = note: for more on editions, read https://doc.rust-lang.org/edition-guide
4880
4981error[E0670]: `async fn` is not permitted in the 2015 edition
5082 --> $DIR/edition-deny-async-fns-2015.rs:31:13
5183 |
5284LL | async fn bar() {}
5385 | ^^^^^
86+ |
87+ = note: to use `async fn`, switch to Rust 2018
88+ = help: set `edition = "2018"` in `Cargo.toml`
89+ = note: for more on editions, read https://doc.rust-lang.org/edition-guide
5490
5591error[E0706]: trait fns cannot be declared `async`
5692 --> $DIR/edition-deny-async-fns-2015.rs:18:5
0 commit comments