[NLL] Dropck is too permissive for generators #49918
Labels
A-coroutines
Area: Coroutines
A-NLL
Area: Non-lexical lifetimes (NLL)
NLL-sound
Working towards the "invalid code does not compile" goal
Code shows a case where
y
doesn't stay borrowed for long enough allowing it to be mutated while a reference to it exists. I think treating generators as if they implementDrop
would fix this, but I'm not sure if this will end up causing incorrect errors in other places.The text was updated successfully, but these errors were encountered: