Deref coercion does not work for some await
returned values
#83783
Labels
A-async-await
Area: Async & Await
A-coercions
Area: implicit and explicit `expr as Type` coercions
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-bug
Category: This is a bug.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: The code compiles.
Instead, this happened: This line does not compile while the others lines do:
The same thing also happened to awaiting
futures::lock::Mutex::lock
function:Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: