Rust Quiz
Predict what tricky Rust programs print, or whether they compile at all
Rust Quiz is a set of medium to hard questions about short Rust programs. Each question shows a program and asks what it does: whether it has undefined behaviour, fails to compile, or is guaranteed to print a particular output. You can ask for a hint, skip, or reveal the answer, and every question comes with an explanation.
Free · No login · Browser · Advanced

About Rust Quiz
The programs are built to expose surprising corners of the language, and each carries a difficulty rating of one to three based on how obscure the knowledge is. It suits experienced Rust programmers who want to test how well they really know the language's rules, rather than newcomers.
It is free, runs in the browser and needs no account, and it keeps a running score of correct answers. It is a GitHub project by David Tolnay, new questions are contributed through pull requests, and the content is licensed CC BY-SA 4.0.
On Breakpoint since 31 Oct 2026.
Made this game? Claim it →

Tips and discussion
No tips yet.
Sign in to share a tip.