diff options
Diffstat (limited to 'Moved heap data principle.md')
-rw-r--r-- | Moved heap data principle.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Moved heap data principle.md b/Moved heap data principle.md new file mode 100644 index 0000000..e8a34ac --- /dev/null +++ b/Moved heap data principle.md @@ -0,0 +1,5 @@ +[[Ownership]] + +--- + +If a variable `x` moves ownership of heap data to another variable `y`, then `x` cannot be used after the move.
\ No newline at end of file |