Course
Learn Rust
Read a lesson, then test yourself with its practice sheet: short programs where you pick what they print, or why they do not compile. Every answer was checked by running the program through the Rust compiler.
16 lessons · 15 practice sheets · 731 questions · Your answers are saved in this browser only.
- 01LessonBits, Booleans and Bitwise OperationsRead
- 01PracticeBits, Booleans and Bitwise Operations50 questionsSolve
- 02LessonInstalling Rust and the Cargo WorkflowRead
- 03LessonVariables, Types and FunctionsRead
- 03PracticeVariables, Types and Functions50 questionsSolve
- 04LessonConditions, Matching and LoopsRead
- 04PracticeConditions, Matching and Loops50 questionsSolve
- 05LessonStack, Heap and MemoryRead
- 05PracticeStack, Heap and Memory50 questionsSolve
- 06LessonOwnership and BorrowingRead
- 06PracticeOwnership and Borrowing50 questionsSolve
- 07LessonString and strRead
- 07PracticeString and str50 questionsSolve
- 08LessonVectors and SlicesRead
- 08PracticeVectors and Slices50 questionsSolve
- 09LessonStructuring DataRead
- 09PracticeStructuring Data50 questionsSolve
- 10LessonModules, Crates and TestsRead
- 10PracticeModules, Crates and Tests50 questionsSolve
- 11LessonGenerics and TraitsRead
- 11PracticeGenerics and Traits50 questionsSolve
- 12LessonLifetimesRead
- 12PracticeLifetimes54 questionsSolve
- 13LessonSmart PointersRead
- 13PracticeSmart Pointers50 questionsSolve
- 14LessonConcurrencyRead
- 14PracticeConcurrency45 questionsSolve
- 15LessonAsync and Unsafe RustRead
- 15PracticeAsync and Unsafe Rust40 questionsSolve
- 16LessonMacros and Advanced TraitsRead
- 16PracticeMacros and Advanced Traits42 questionsSolve