2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(unused_variables)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-12-05 08:45:46 -06:00
|
|
|
enum Homura {
|
|
|
|
Madoka {
|
|
|
|
name: String,
|
|
|
|
age: u32,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let homura = Homura::Madoka {
|
2014-12-10 21:46:38 -06:00
|
|
|
name: "Akemi".to_string(),
|
2014-12-05 08:45:46 -06:00
|
|
|
age: 14,
|
|
|
|
};
|
|
|
|
|
|
|
|
match homura {
|
|
|
|
Homura::Madoka {
|
|
|
|
name,
|
|
|
|
age,
|
|
|
|
} => (),
|
|
|
|
};
|
|
|
|
}
|