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+
17error[E0658]: async fn is unstable
28 --> $DIR/feature-gate-async-await.rs:8:5
39 |
@@ -8,7 +14,16 @@ LL | async fn foo() {}
814 = help: add #![feature(async_await)] to the crate attributes to enable
915
1016error[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:16:1
1227 |
1328LL | async fn foo() {}
1429 | ^^^^^^^^^^^^^^^^^
@@ -17,7 +32,7 @@ LL | async fn foo() {}
1732 = help: add #![feature(async_await)] to the crate attributes to enable
1833
1934error[E0658]: async blocks are unstable
20- --> $DIR/feature-gate-async-await.rs:14 :13
35+ --> $DIR/feature-gate-async-await.rs:19 :13
2136 |
2237LL | let _ = async {};
2338 | ^^^^^^^^
@@ -26,14 +41,15 @@ LL | let _ = async {};
2641 = help: add #![feature(async_await)] to the crate attributes to enable
2742
2843error[E0658]: async closures are unstable
29- --> $DIR/feature-gate-async-await.rs:15 :13
44+ --> $DIR/feature-gate-async-await.rs:20 :13
3045 |
3146LL | let _ = async || {};
3247 | ^^^^^^^^^^^
3348 |
3449 = note: for more information, see https://github.com/rust-lang/rust/issues/50547
3550 = help: add #![feature(async_await)] to the crate attributes to enable
3651
37- error: aborting due to 4 previous errors
52+ error: aborting due to 6 previous errors
3853
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