Regression/ICE: moving both a Copy
type and a !Copy
type into async move || { ... }
(async_closure
)
#124487
Labels
C-bug
Category: This is a bug.
F-async_closure
`#![feature(async_closure)]`
requires-nightly
This issue requires a nightly compiler in some way.
Code
I tried this code (minimized):
I expected to see this happen: Compiles
Instead, this happened (
nightly-2024-02-09
):Instead, this happened (latest nightly): ICE
Versions
working -> error
Related: #120361
Mentioning @compiler-errors 😉
error -> ICE
Best guess: #123350
Backtrace
@rustbot modify labels: +regression-from-nightly-to-nightly -regression-untriaged
Thanks for investigating!
Workaround
async move || { ... }
->move || async move { ... }
The text was updated successfully, but these errors were encountered: