1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
// run-pass #![allow(unused_variables)] // pretty-expanded FIXME #23616 enum Homura { Madoka { name: String, age: u32, }, } fn main() { let homura = Homura::Madoka { name: "Akemi".to_string(), age: 14, }; match homura { Homura::Madoka { name, age, } => (), }; }