-Zdrop-tracking doesn't work if the value is borrowed #101135
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.
I tried this code with
-Zdrop-tracking
:I expected to see this happen: this should compiler, as
-Zdrop-tracking
should see that we drop the non-Send
type before the yield point.Instead, this happened: this does not compile with "future cannot be sent between threads safely" pointing to the
NonSend
type.If I comment the
use_non_send(&non_send);
line it works fine.I don't know if this is supposed to work but this looks like a bug.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: