summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-17800.rs
blob: 5254f45d7c2de7cea3a35418c00b24c10b900e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
enum MyOption<T> {
    MySome(T),
    MyNone,
}

fn main() {
    match MyOption::MySome(42) {
        MyOption::MySome { x: 42 } => (),
        //~^ ERROR tuple variant `MyOption::MySome` written as struct variant
        _ => (),
    }
}