Skip to content
Breakpoint logobreakpoınt

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.

Play on dtolnay.github.io

Free · No login · Browser · Advanced

Screenshot of Rust Quiz

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 →

Keyboard shortcuts

j / k
Move down / up the list (this page)
] / [
Next / previous page
o
Open the focused game
b
Save or unsave the focused game
/
Search (the home list, or the command palette elsewhere)
Ctrl K
Command palette: games, skills, pages (works even when single keys are off)
?
This help