]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-async-await.rs
Rollup merge of #56594 - sdroege:c_void-is-not-never, r=TimNN
[rust.git] / src / test / ui / feature-gates / feature-gate-async-await.rs
1 // edition:2018
2
3 #![feature(futures_api)]
4
5 async fn foo() {} //~ ERROR async fn is unstable
6
7 fn main() {
8     let _ = async {}; //~ ERROR async blocks are unstable
9     let _ = async || {}; //~ ERROR async closures are unstable
10 }