]> git.lizzy.rs Git - rust.git/blob - tests/ui/pattern/pat-struct-field-expr-has-type.rs
Rollup merge of #106749 - glandium:dwarf, r=Mark-Simulacrum
[rust.git] / tests / ui / pattern / pat-struct-field-expr-has-type.rs
1 struct S {
2     f: u8,
3 }
4
5 fn main() {
6     match (S { f: 42 }) {
7         S { f: Ok(_) } => {} //~ ERROR mismatched types
8     }
9 }