Stdle #97 · option · 2026-09-11
What does this Rust snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
fn main() { let x = Some(2); let y: Option<i32> = None; println!("{}", matches!(x, Some(_))); println!("{}", matches!(y, Some(_))); println!("{}", matches!(x, Some(n) if n > 5));}Option