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.

  1. 01LessonBits, Booleans and Bitwise OperationsRead
  2. 01PracticeBits, Booleans and Bitwise Operations50 questionsSolve
  3. 02LessonInstalling Rust and the Cargo WorkflowRead
  4. 03LessonVariables, Types and FunctionsRead
  5. 03PracticeVariables, Types and Functions50 questionsSolve
  6. 04LessonConditions, Matching and LoopsRead
  7. 04PracticeConditions, Matching and Loops50 questionsSolve
  8. 05LessonStack, Heap and MemoryRead
  9. 05PracticeStack, Heap and Memory50 questionsSolve
  10. 06LessonOwnership and BorrowingRead
  11. 06PracticeOwnership and Borrowing50 questionsSolve
  12. 07LessonString and strRead
  13. 07PracticeString and str50 questionsSolve
  14. 08LessonVectors and SlicesRead
  15. 08PracticeVectors and Slices50 questionsSolve
  16. 09LessonStructuring DataRead
  17. 09PracticeStructuring Data50 questionsSolve
  18. 10LessonModules, Crates and TestsRead
  19. 10PracticeModules, Crates and Tests50 questionsSolve
  20. 11LessonGenerics and TraitsRead
  21. 11PracticeGenerics and Traits50 questionsSolve
  22. 12LessonLifetimesRead
  23. 12PracticeLifetimes54 questionsSolve
  24. 13LessonSmart PointersRead
  25. 13PracticeSmart Pointers50 questionsSolve
  26. 14LessonConcurrencyRead
  27. 14PracticeConcurrency45 questionsSolve
  28. 15LessonAsync and Unsafe RustRead
  29. 15PracticeAsync and Unsafe Rust40 questionsSolve
  30. 16LessonMacros and Advanced TraitsRead
  31. 16PracticeMacros and Advanced Traits42 questionsSolve