1
1
error[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
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[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
12
12
|
13
13
LL | fn baz() { async fn foo() {} }
14
14
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -17,7 +17,7 @@ LL | fn baz() { async fn foo() {} }
17
17
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
18
18
19
19
error[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
21
21
|
22
22
LL | async fn async_baz() {
23
23
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -26,7 +26,7 @@ LL | async fn async_baz() {
26
26
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
27
27
28
28
error[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
30
30
|
31
31
LL | async fn bar() {}
32
32
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -35,7 +35,7 @@ LL | async fn bar() {}
35
35
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
36
36
37
37
error[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
39
39
|
40
40
LL | async fn foo() {}
41
41
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -44,7 +44,7 @@ LL | async fn foo() {}
44
44
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
45
45
46
46
error[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
48
48
|
49
49
LL | async fn foo() {}
50
50
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -53,7 +53,7 @@ LL | async fn foo() {}
53
53
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
54
54
55
55
error[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
57
57
|
58
58
LL | async fn bar() {}
59
59
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -62,7 +62,7 @@ LL | async fn bar() {}
62
62
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
63
63
64
64
error[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
66
66
|
67
67
LL | async fn foo() {}
68
68
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -71,7 +71,7 @@ LL | async fn foo() {}
71
71
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
72
72
73
73
error[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
75
75
|
76
76
LL | async fn bar() {}
77
77
| ^^^^^ to use `async fn`, switch to Rust 2018 or later
@@ -80,7 +80,7 @@ LL | async fn bar() {}
80
80
= note: for more on editions, read https://doc.rust-lang.org/edition-guide
81
81
82
82
error[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
84
84
|
85
85
LL | async fn foo() {}
86
86
| -----^^^^^^^^^
0 commit comments