]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/mutually-recursive-async-impl-trait-type.drop_tracking_mir.stderr
Rollup merge of #105641 - Amanieu:btree_cursor, r=m-ou-se
[rust.git] / tests / ui / async-await / mutually-recursive-async-impl-trait-type.drop_tracking_mir.stderr
1 error[E0733]: recursion in an `async fn` requires boxing
2   --> $DIR/mutually-recursive-async-impl-trait-type.rs:9:18
3    |
4 LL | async fn rec_1() {
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[E0733]: recursion in an `async fn` requires boxing
11   --> $DIR/mutually-recursive-async-impl-trait-type.rs:13:18
12    |
13 LL | async fn rec_2() {
14    |                  ^ recursive `async fn`
15    |
16    = note: a recursive `async fn` must be rewritten to return a boxed `dyn Future`
17    = note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0733`.