@@ -3,54 +3,90 @@ error[E0670]: `async fn` is not permitted in the 2015 edition
3
3
|
4
4
LL | async fn foo() {}
5
5
| ^^^^^
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
6
10
7
11
error[E0670]: `async fn` is not permitted in the 2015 edition
8
12
--> $DIR/edition-deny-async-fns-2015.rs:5:12
9
13
|
10
14
LL | fn baz() { async fn foo() {} }
11
15
| ^^^^^
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
12
20
13
21
error[E0670]: `async fn` is not permitted in the 2015 edition
14
22
--> $DIR/edition-deny-async-fns-2015.rs:7:1
15
23
|
16
24
LL | async fn async_baz() {
17
25
| ^^^^^
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
18
30
19
31
error[E0670]: `async fn` is not permitted in the 2015 edition
20
32
--> $DIR/edition-deny-async-fns-2015.rs:8:5
21
33
|
22
34
LL | async fn bar() {}
23
35
| ^^^^^
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
24
40
25
41
error[E0670]: `async fn` is not permitted in the 2015 edition
26
42
--> $DIR/edition-deny-async-fns-2015.rs:14:5
27
43
|
28
44
LL | async fn foo() {}
29
45
| ^^^^^
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
30
50
31
51
error[E0670]: `async fn` is not permitted in the 2015 edition
32
52
--> $DIR/edition-deny-async-fns-2015.rs:18:5
33
53
|
34
54
LL | async fn foo() {}
35
55
| ^^^^^
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
36
60
37
61
error[E0670]: `async fn` is not permitted in the 2015 edition
38
62
--> $DIR/edition-deny-async-fns-2015.rs:36:9
39
63
|
40
64
LL | async fn bar() {}
41
65
| ^^^^^
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
42
70
43
71
error[E0670]: `async fn` is not permitted in the 2015 edition
44
72
--> $DIR/edition-deny-async-fns-2015.rs:26:9
45
73
|
46
74
LL | async fn foo() {}
47
75
| ^^^^^
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
48
80
49
81
error[E0670]: `async fn` is not permitted in the 2015 edition
50
82
--> $DIR/edition-deny-async-fns-2015.rs:31:13
51
83
|
52
84
LL | async fn bar() {}
53
85
| ^^^^^
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
54
90
55
91
error[E0706]: trait fns cannot be declared `async`
56
92
--> $DIR/edition-deny-async-fns-2015.rs:18:5
0 commit comments