]>
Commit | Line | Data |
---|---|---|
532ac7d7 XL |
1 | // edition:2018 |
2 | // Test that impl trait does not allow creating recursive types that are | |
3 | // otherwise forbidden when using `async` and `await`. | |
4 | ||
ee023bcb FG |
5 | async fn recursive_async_function() -> () { |
6 | //~^ ERROR recursion in an `async fn` requires boxing | |
416331ca | 7 | recursive_async_function().await; |
532ac7d7 XL |
8 | } |
9 | ||
10 | fn main() {} |