summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/in-trait/async-recursive.current.stderr
blob: 85af27e3746536f686dc9f521b8d35138c6530c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
error[E0733]: recursion in an `async fn` requires boxing
  --> $DIR/async-recursive.rs:13: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`.