]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pat-struct-field-expr-has-type.rs
Merge commit 'dc5423ad448877e33cca28db2f1445c9c4473c75' into clippyup
[rust.git] / src / test / 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 }