summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/mutually-recursive-async-impl-trait-type.no_drop_tracking.stderr
blob: 8a7317bb95a704682a3ccd465dada3dfc9ca8aa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0733]: recursion in an `async fn` requires boxing
  --> $DIR/mutually-recursive-async-impl-trait-type.rs:9:18
   |
LL | async fn rec_1() {
   |                  ^ 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[E0733]: recursion in an `async fn` requires boxing
  --> $DIR/mutually-recursive-async-impl-trait-type.rs:13:18
   |
LL | async fn rec_2() {
   |                  ^ 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 2 previous errors

For more information about this error, try `rustc --explain E0733`.