Stdle #62 · comparisons · 2026-08-07
What does this Rust snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
fn main() { let n = 4; let s = match n { x @ 1..=5 => format!("got {}", x), _ => String::from("out"), }; println!("{}", s);}Comparisons