blob: a4e080119345e8f1791f4e77496f4d468d98bcb3 [file] [log] [blame]
// edition:2018
// Test that impl trait does not allow creating recursive types that are
// otherwise forbidden when using `async` and `await`.
#![feature(await_macro, async_await, generators)]
async fn recursive_async_function() -> () { //~ ERROR
await!(recursive_async_function());
}
fn main() {}