]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/in-trait/async-recursive.stderr
Rollup merge of #105459 - jyn514:proc-macro-default, r=Mark-Simulacrum
[rust.git] / src / test / ui / async-await / in-trait / async-recursive.stderr
1 error[E0733]: recursion in an `async fn` requires boxing
2   --> $DIR/async-recursive.rs:11:48
3    |
4 LL |     async fn foo_recursive(&self, n: usize) -> i32 {
5    |                                                ^^^ recursive `async fn`
6    |
7    = note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
8    = note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0733`.