1
+ error[E0706]: trait fns cannot be declared `async`
2
+ --> $DIR/feature-gate-async-await.rs:12:5
3
+ |
4
+ LL | async fn foo();
5
+ | ^^^^^^^^^^^^^^^
6
+
1
7
error[E0658]: async fn is unstable
2
8
--> $DIR/feature-gate-async-await.rs:8:5
3
9
|
@@ -8,7 +14,16 @@ LL | async fn foo() {}
8
14
= help: add #![feature(async_await)] to the crate attributes to enable
9
15
10
16
error[E0658]: async fn is unstable
11
- --> $DIR/feature-gate-async-await.rs:11:1
17
+ --> $DIR/feature-gate-async-await.rs:12:5
18
+ |
19
+ LL | async fn foo();
20
+ | ^^^^^^^^^^^^^^^
21
+ |
22
+ = note: for more information, see https://github.com/rust-lang/rust/issues/50547
23
+ = help: add #![feature(async_await)] to the crate attributes to enable
24
+
25
+ error[E0658]: async fn is unstable
26
+ --> $DIR/feature-gate-async-await.rs:15:1
12
27
|
13
28
LL | async fn foo() {}
14
29
| ^^^^^^^^^^^^^^^^^
@@ -17,7 +32,7 @@ LL | async fn foo() {}
17
32
= help: add #![feature(async_await)] to the crate attributes to enable
18
33
19
34
error[E0658]: async blocks are unstable
20
- --> $DIR/feature-gate-async-await.rs:14 :13
35
+ --> $DIR/feature-gate-async-await.rs:18 :13
21
36
|
22
37
LL | let _ = async {};
23
38
| ^^^^^^^^
@@ -26,14 +41,15 @@ LL | let _ = async {};
26
41
= help: add #![feature(async_await)] to the crate attributes to enable
27
42
28
43
error[E0658]: async closures are unstable
29
- --> $DIR/feature-gate-async-await.rs:15 :13
44
+ --> $DIR/feature-gate-async-await.rs:19 :13
30
45
|
31
46
LL | let _ = async || {};
32
47
| ^^^^^^^^^^^
33
48
|
34
49
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
35
50
= help: add #![feature(async_await)] to the crate attributes to enable
36
51
37
- error: aborting due to 4 previous errors
52
+ error: aborting due to 6 previous errors
38
53
39
- For more information about this error, try `rustc --explain E0658`.
54
+ Some errors occurred: E0658, E0706.
55
+ For more information about an error, try `rustc --explain E0658`.
0 commit comments