blob: c68f8c31ded500bdc7ccd07a71eb7902bf307aeb (
plain)
1
2
3
4
5
6
7
8
9
10
|
//@ 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() {}
|