1 2 3 4 5 6
[[Rust principles]] [[When boxes are deallocated]] --- If a variable owns a box, when Rust deallocates the variable’s frame, then Rust deallocates the box’s heap memory.