2 // Test that impl trait does not allow creating recursive types that are
3 // otherwise forbidden when using `async` and `await`.
5 async fn recursive_async_function() -> () {
6 //~^ ERROR recursion in an `async fn` requires boxing
7 recursive_async_function().await;