summaryrefslogtreecommitdiffstats
path: root/tests/ui/type/type-check/issue-41314.rs
blob: cbd39f5f9e6ed5c842acc199414cfb3063475edd (plain)
1
2
3
4
5
6
7
8
9
10
enum X {
    Y(u32)
}

fn main() {
    match X::Y(0) {
        X::Y { number } => {}
        //~^ ERROR tuple variant `X::Y` written as struct variant
    }
}