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