async_closure
: error: implementation of AsyncFnOnce
is not general enough
#126350
Labels
A-async-await
Area: Async & Await
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-bug
Category: This is a bug.
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'm not sure if this is really a bug (or perhaps a duplicate issue of another bug). However, I can't see any reason why this shouldn't work.
I tried this code:
I expected to see this happen: Code compiles successfully
Instead, this happened: Compile error:
(see https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=536db823e50d32307ee54645dbec25c6)
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: