summaryrefslogtreecommitdiff
path: root/Moved heap data principle.md
blob: a25f60a146cd2b24b335df6bcdd106ac921d37e7 (plain)
1
2
3
4
5
6
[[Rust principles]]
[[Ownership]]

---

If a variable `x` moves ownership of heap data to another variable `y`, then `x` cannot be used after the move.