You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a weird issue where cargo check reports success, whereas cargo run (or build, test, etc.) results in compilation error (of course with exactly the same feature flags and cfg(test)).
I expected them to be consistent, (check should report all build failures as far as I undestand)
error[E0733]: recursion in an async fn requires boxing
--> src/main.rs:4:5
|
4 | async fn foo() {
| ^^^^^^^^^^^^^^
5 | Self::Dependency::foo().await;
| ----------------------------- recursive call here
|
= note: a recursive `async fn` call must introduce indirection such as `Box::pin` to avoid an infinitely sized future
For more information about this error, try `rustc --explain E0733`.
error: could not compile `test-play` (bin "test-play") due to 1 previous error
Possible Solution(s)
Usage of associated type is an important part of repro. So the reason is somehow related to this
Problem
I encountered a weird issue where
cargo check
reports success, whereascargo run
(or build, test, etc.) results in compilation error (of course with exactly the same feature flags andcfg(test)
).I expected them to be consistent, (
check
should report allbuild
failures as far as I undestand)Steps
cargo check
- only warning is shown:cargo build
results in error:Possible Solution(s)
Usage of associated type is an important part of repro. So the reason is somehow related to this
Notes
No response
Version
The text was updated successfully, but these errors were encountered: