1 error[E0670]: `async fn` is not permitted in the 2015 edition
2 --> $DIR/feature-gate-async-await-2015-edition.rs:5:1
7 error[E0422]: cannot find struct, variant or union type `async` in this scope
8 --> $DIR/feature-gate-async-await-2015-edition.rs:9:13
10 LL | let _ = async {};
11 | ^^^^^ not found in this scope
13 error[E0425]: cannot find value `async` in this scope
14 --> $DIR/feature-gate-async-await-2015-edition.rs:10:13
16 LL | let _ = async || { true };
17 | ^^^^^ not found in this scope
19 error[E0658]: async fn is unstable
20 --> $DIR/feature-gate-async-await-2015-edition.rs:5:1
22 LL | async fn foo() {}
25 = note: for more information, see https://github.com/rust-lang/rust/issues/50547
26 = help: add #![feature(async_await)] to the crate attributes to enable
28 error: aborting due to 4 previous errors
30 Some errors have detailed explanations: E0422, E0425, E0658, E0670.
31 For more information about an error, try `rustc --explain E0422`.