


Test How Well You Really Know Rust
Rust programs either compile or they do not, and the borrow checker decides. Why can you push to a vector right after printing a reference to it, but not before? Why is a new value assigned to let _ dropped at once, while let _x keeps it alive to the end of the scope? Why does a move closure that only reads a String still take ownership of it? These practice tests check how deeply you understand ownership, borrowing and the type system, one short program at a time.
What this practice test course offers:
Topics covered:
Who should take this course?
If you have never written Rust, start with a Rust fundamentals course and come back here to test yourself.
How to use the tests: take one test at a time, then read every explanation, including the ones for questions you answered correctly. Retake a test a few days later to check that the rules have stuck.
This course is independent and is not affiliated with or endorsed by the Rust Foundation or the Rust Project.