---
title: "Chapter 8: Ownership and Moves"
description: "The 8 lessons of chapter 8: Ownership and Moves, in teaching order."
url: "https://learnrust.net/chapter-8/"
last_updated: "2026-06-12"
---

# Chapter 8: Ownership and Moves

- [8.1 Introduction to ownership](https://learnrust.net/chapter-8/introduction-to-ownership.md): Why memory management is the problem every language must solve, and how Rust's compile-time ownership rules differ from manual management and garbage collection.
- [8.2 The stack and the heap](https://learnrust.net/chapter-8/the-stack-and-the-heap.md): Where Rust programs keep their values: stack frames and why they're fast, the heap and why it needs cleanup, and what a String really looks like in memory.
- [8.3 Scope and drop](https://learnrust.net/chapter-8/scope-and-drop.md): Rust frees a value the moment its owner goes out of scope: what 'dropped' means, and why deterministic cleanup beats waiting for a garbage collector.
- [8.4 Moves: assignment transfers ownership](https://learnrust.net/chapter-8/moves.md): What let s2 = s1 really does to a String: why Rust moves ownership instead of copying, and the use-after-move error message read line by line.
- [8.5 Copy types: when assignment copies](https://learnrust.net/chapter-8/copy-types.md): Why integers never triggered a move error: the Copy marker, which Rust types copy on assignment versus move, and how to tell at a glance.
- [8.6 Ownership and functions](https://learnrust.net/chapter-8/ownership-and-functions.md): Passing a String to a function moves it, returning gives ownership back: the full story behind 'arguments are copied', and why chapter 9 exists.
- [8.7 Clone: explicit deep copies](https://learnrust.net/chapter-8/clone.md): When you genuinely need two copies of a String, .clone() duplicates the heap data: how it works, what it costs, and when reaching for it is a mistake.
- [8.x Chapter 8 summary and quiz](https://learnrust.net/chapter-8/chapter-8-summary-and-quiz.md): Ownership, the stack and heap, drops, moves, Copy and Clone reviewed, plus a quiz that exercises the whole ownership model at once.

## Sitemap

See the full [sitemap](https://learnrust.net/sitemap.md) for all pages.
