borrowck allows use-after-free with weird struct A{foo: Option<~fn(&mut A)>}
construction
#9853
Labels
A-lifetimes
Area: Lifetimes / regions
Here's a bit of a verbose test case for a situation where I get away with accessing a value in a
~
-closure environment after its destructor has run. valgrind also complains. Not sure whether this falls under a known bug, I didn't really know what terms to search for.output:
The text was updated successfully, but these errors were encountered: