2023-11-24 15:05:11 +00:00
|
|
|
error[E0733]: recursion in an async fn requires boxing
|
2025-01-27 19:15:37 +00:00
|
|
|
--> $DIR/indirect-recursion-issue-112047.rs:31:5
|
2023-06-24 10:02:54 +00:00
|
|
|
|
|
2023-11-24 15:05:11 +00:00
|
|
|
LL | async fn second(self) {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
2025-03-07 21:09:56 +00:00
|
|
|
LL |
|
|
|
|
LL | self.first().await.second().await;
|
|
|
|
| --------------------------------- recursive call here
|
2023-11-24 15:05:11 +00:00
|
|
|
|
|
|
|
|
= note: a recursive `async fn` call must introduce indirection such as `Box::pin` to avoid an infinitely sized future
|
2023-09-13 17:33:40 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2023-09-13 17:33:40 +00:00
|
|
|
|
2023-11-24 15:05:11 +00:00
|
|
|
For more information about this error, try `rustc --explain E0733`.
|