]> git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/pat-struct-field-expr-has-type.rs
New upstream version 1.57.0+dfsg1
[rustc.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 }