summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/pat-struct-field-expr-has-type.rs
blob: 1d18214de7f08ac263ba45ad14965c389b0f7b7e (plain)
1
2
3
4
5
6
7
8
9
struct S {
    f: u8,
}

fn main() {
    match (S { f: 42 }) {
        S { f: Ok(_) } => {} //~ ERROR mismatched types
    }
}