Skip to content

Learning Path

Finish chapters 1–3 of the official Book (install Rust, Hello World, basic syntax) and make sure you can run a simple program with cargo run.

That’s the minimum the code experiments need: you know what let does, that fn main() is the entry point, how println! works. Like a physics lab requiring you to operate a multimeter — no circuit theory needed, just the basic instrument.

Lessons are written by interest. The sidebar order is not the final teaching order. After a lesson, practice in the Book chapter that lesson points to. The Book is where you learn how to write the code.

  1. Predict before you run. Use the rules we just derived to decide whether it compiles, and why.
  2. Read the compiler, not the program output. We care about the protocol enforcer’s verdict.
  3. A wrong prediction is good news. That’s exactly where the mental model needs a fix.

The course systematically covers the 15–20 compiler errors beginners hit most (E0382 use of moved value, E0502 cannot borrow as mutable, …). Each time one appears: trigger it, read the message line by line, explain what it protects you from, then fix it and explain why the fix is right.