Rust incorrectly detects move'd async closure as FnOnce instead of Fn on nightly-2024-02-07 #120957
Labels
C-bug
Category: This is a bug.
F-async_closure
`#![feature(async_closure)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: No compiler errors
Instead, this happened:
Meta
rustc --version --verbose
:This bug was introduced between nightly-2024-02-06 (where the code builds correctly) and nightly-2024-02-27 (where the error happens), and is still present on nightly-2024-02-11 (the latest when this was released). This bug is likely related to #120886, which was fixed by #120712.
The text was updated successfully, but these errors were encountered: