ICE: async_fn_traits - error performing ParamEnvAnd when moving non-Copy value to async closure #121599
Labels
C-bug
Category: This is a bug.
F-async_fn_traits
`#![feature(async_fn_traits)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Encountered an ICE when attempting to use the async_fn_traits feature. Seems to be related to moving non-copy values into it. Traditional usage would be a regular compiler error.
I believe this is the same error, just... not as pretty :)
error[E0507]: cannot move out of `value`, a captured variable in an `FnMut` closure
Code
Meta
rustc --version --verbose
: (tested with the Rust playground)Error output
Backtrace
The text was updated successfully, but these errors were encountered: