2 // Test that impl trait does not allow creating recursive types that are
3 // otherwise forbidden when using `async` and `await`.
5 #![feature(await_macro, async_await, futures_api, generators)]
7 async fn recursive_async_function() -> () { //~ ERROR
8 await!(recursive_async_function());