blob: 9351ee53f075488d661b157bf3f900a216cb36ba [file] [log] [blame]
// edition:2018
// Test that impl trait does not allow creating recursive types that are
// otherwise forbidden when using `async` and `await`.
async fn recursive_async_function() -> () {
//~^ ERROR recursion in an async fn requires boxing
recursive_async_function().await;
}
fn main() {}