1 error[E0308]: mismatched types
2 --> $DIR/pat-struct-field-expr-has-type.rs:7:16
4 LL | match (S { f: 42 }) {
5 | ------------- this expression has type `S`
6 LL | S { f: Ok(_) } => {}
7 | ^^^^^ expected `u8`, found enum `Result`
9 = note: expected type `u8`
10 found enum `Result<_, _>`
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0308`.