summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-19340-2.rs
blob: a222e9e4621042f5277d55d31f5e07f43efd058b (plain)
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,
        } => (),
    };
}