]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/pat-struct-field-expr-has-type.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[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 }