Variable lifetime is wrongly tracked in async fn #98077
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.
Playground. Error:
f
is manually moved withdrop
and could not be dropped at the end of the scope aftervalue
.Some bonus weird behavior, this works:
But if you add
#[derive(Copy, Clone)]
toFoo
, then it fails with the same error. However, this also does not work:So, probably not necessarily connected to
Copy
.The text was updated successfully, but these errors were encountered: