mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
24 lines
363 B
Rust
24 lines
363 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,
|
|
} => (),
|
|
};
|
|
}
|