Learn Rust, one checkpoint at a time
5 guided lessons, 15 steps. You write the code in a live editor and each checkpoint ticks itself the moment the real compiler agrees with you — no quizzes, no sign-up, nothing to submit.
Rust is compiled ahead of time, so mistakes surface before anything runs. That is exactly what makes it a good language to learn interactively: the feedback is immediate and precise.
- Lesson 1Start here6 min · 3 steps
Your first Rust program
Write a main function, print with a macro, and understand what the compiler did.
- Lesson 2Core idea10 min · 3 steps
Ownership without the fear
See a move happen, break the program on purpose, then fix it two different ways.
- Lesson 3Core idea10 min · 3 steps
Make the borrow checker your friend
Shared borrows, one mutable borrow, and why the rule exists at all.
- Lesson 4Going further12 min · 3 steps
Structs, traits and behaviour
Model data with a struct, give it behaviour with a trait, print it nicely.
- Lesson 5Going further12 min · 3 steps
Handling things that can fail
Option, Result and the `?` operator — errors as ordinary values.
Prefer to read finished programs instead? Browse the runnable examples.