rust/tests/ui/issues/issue-19340-2.rs
2023-01-11 09:32:08 +00:00

25 lines
361 B
Rust

// 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,
} => (),
};
}