summaryrefslogtreecommitdiff
path: root/Box deallocation principle.md
blob: 01418d45a4fd45532d303702e69738e161daac22 (plain)
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.