2023-06-23 22:00:08 -05:00
|
|
|
error[E0733]: recursion in an `async fn` requires boxing
|
2023-10-24 10:27:02 -05:00
|
|
|
--> $DIR/async-recursive-generic.rs:8:5
|
2023-06-23 22:00:08 -05:00
|
|
|
|
|
|
|
|
LL | async fn foo_recursive(&self, n: usize) -> T {
|
2023-10-02 16:31:46 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ recursive `async fn`
|
2023-06-23 22:00:08 -05:00
|
|
|
|
|
|
|
|
= 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
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-06-23 22:00:08 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0733`.
|