Use after free with mutable owned pointers #11192
Labels
A-lifetimes
Area: Lifetimes / regions
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
This code compiles and runs but seems to allow a use-after-free:
The output is:
This is with rustc 0.8. It may be related to #9853 but I'm not sure.
The text was updated successfully, but these errors were encountered: