← Back to archive

Stdle #168 · comparisons · 2026-11-21

What does this Rust snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

fn main() {
let n = 3;
let label = match n {
1 => "one",
2 => "two",
_ => "many",
};
println!("{}", label);
}
Comparisons
4 attempts left

Answer & explanation