Stdle #51 · 2026-07-27
What does this log?
Read the snippet and type its exact console output. You get 4 attempts — each wrong guess unlocks a hint.
struct User { id: u32, active: bool }fn main() { let u = User { id: 7, active: false }; let s = match u { User { active: true, id } => format!("on {}", id), User { active: false, .. } => "off".to_string(), }; println!("{}", s);}Comparisons