Stdle #14 · comparisons · 2026-06-20
What does this Rust snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
fn main() { let t = (1, (2, 3)); let s = match t { (1, (a, b)) => a + b, (_, (a, _)) => a, }; println!("{}", s);}Comparisons