error[E0658]: async fn is unstable
- --> $DIR/feature-gate-async-await.rs:5:1
+ --> $DIR/feature-gate-async-await.rs:8:5
+ |
+LL | async fn foo() {}
+ | ^^^^^^^^^^^^^^^^^
+ |
+ = note: for more information, see https://github.com/rust-lang/rust/issues/50547
+ = help: add #![feature(async_await)] to the crate attributes to enable
+
+error[E0658]: async fn is unstable
+ --> $DIR/feature-gate-async-await.rs:11:1
|
LL | async fn foo() {}
| ^^^^^^^^^^^^^^^^^
= help: add #![feature(async_await)] to the crate attributes to enable
error[E0658]: async blocks are unstable
- --> $DIR/feature-gate-async-await.rs:8:13
+ --> $DIR/feature-gate-async-await.rs:14:13
|
LL | let _ = async {};
| ^^^^^^^^
= help: add #![feature(async_await)] to the crate attributes to enable
error[E0658]: async closures are unstable
- --> $DIR/feature-gate-async-await.rs:9:13
+ --> $DIR/feature-gate-async-await.rs:15:13
|
LL | let _ = async || {};
| ^^^^^^^^^^^
= note: for more information, see https://github.com/rust-lang/rust/issues/50547
= help: add #![feature(async_await)] to the crate attributes to enable
-error: aborting due to 3 previous errors
+error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0658`.