1
Fork 0

Run existing async in traits tests using -Zlower-impl-trait-in-trait-to-assoc-ty

This commit is contained in:
Santiago Pastorino 2023-03-07 18:26:02 -03:00
parent 8a5574bf62
commit 07e018dfef
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
31 changed files with 145 additions and 10 deletions

View file

@ -1,12 +0,0 @@
error[E0733]: recursion in an `async fn` requires boxing
--> $DIR/async-recursive.rs:11:48
|
LL | async fn foo_recursive(&self, n: usize) -> i32 {
| ^^^ recursive `async fn`
|
= note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
= note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
error: aborting due to previous error
For more information about this error, try `rustc --explain E0733`.