Rust / the practical course

Learning happens at the keyboard

The practice bench.

Every lesson has an exercise and a solution. Use these projects to practice several skills together, and the compiler drills to learn from errors.

Build checkpoints

Read the compiler

These six small programs fail on purpose. Read the compiler error, fix the code, and compare your answer with the solution.

Try an ownership example

This card shows the tested ownership example from lesson 03.

Borrow, then move: a tested Rust example that reads a String through a shared reference before transferring ownership.

Download the example card as Markdown

Get the complete lab

The source repository contains every runnable example, the capstone, the unsafe lab, tests, and captured diagnostics.

Open the repository ↗
cargo test --workspace --locked
npm run verify:rust

Find a lesson