2026-spring rust-ownership/lessons/08-lifetimes-demystified

README.md

Lesson 8: Lifetimes demystified

This lesson covers lifetimes demystified. You'll read a short explanation, try three small exercises and finish with a quiz.

Full lesson: https://glibcode.net/courses/rust-ownership/lessons/8

Files

  • src/main.rs: lifetime annotations when the compiler needs them

Run it

cargo run

Exercises

See exercises.md. Ask in the forum once you've tried.