-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Variable lifetime is wrongly tracked in async fn #98077
Copy link
Copy link
Closed
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.Async-await issues that have been triaged during a working group meeting.C-bugCategory: This is a bug.Category: This is a bug.
Metadata
Metadata
Assignees
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.Async-await issues that have been triaged during a working group meeting.C-bugCategory: This is a bug.Category: This is a bug.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
Playground. Error:
fis manually moved withdropand 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.