]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/async-await/mutually-recursive-async-impl-trait-type.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / async-await / mutually-recursive-async-impl-trait-type.stderr
index f6e4c8be29260a5f769c3290ca68bbbf25926e79..f789ad2a05c7d5499b898f1f9f79c0bdee5bdc97 100644 (file)
@@ -5,6 +5,7 @@ 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:9:18
@@ -13,6 +14,7 @@ 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