]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-async-await-2015-edition.rs
Stabilize futures_api
[rust.git] / src / test / ui / feature-gates / feature-gate-async-await-2015-edition.rs
1 // edition:2015
2
3 async fn foo() {} //~ ERROR `async fn` is not permitted in the 2015 edition
4                   //~^ ERROR async fn is unstable
5
6 fn main() {
7     let _ = async {}; //~ ERROR cannot find struct, variant or union type `async`
8     let _ = async || { true }; //~ ERROR cannot find value `async` in this scope
9 }