
Concurrency
Rust Error Recursion in an Async Fn Requires Boxing
A recursive async fn has an infinitely sized future, so the compiler asks for indirection. Return a boxed future with Box::pin, or use the async-recursion crate, and prefer a loop when you can.
7 min read