Regioned destructors don't run in the right order #3164
Labels
A-destructors
Area: destructors (Drop, ..)
A-lifetimes
Area: lifetime related
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
I believe the issue is simply that destructors are run in regardless order of borrows. Instead, the destructors with borrows should run first.
This code prints,
rust: ~"bye \xffffff91"
and this code segfaults:
The text was updated successfully, but these errors were encountered: