1 error[E0308]: mismatched types
2 --> $DIR/match-struct.rs:6:9
4 LL | match (S { a: 1 }) {
5 | ------------ this expression has type `S`
7 | ^^^^^^^ expected struct `S`, found enum `E`
9 error: aborting due to previous error
11 For more information about this error, try `rustc --explain E0308`.