1 error[E0308]: mismatched types
2 --> $DIR/issue-57741-1.rs:14:9
5 | - this expression has type `Box<u32>`
6 LL | S::A { a } | S::B { b: a } => a,
7 | ^^^^^^^^^^ expected `Box<u32>`, found `S`
9 = note: expected struct `Box<u32>`
12 error[E0308]: mismatched types
13 --> $DIR/issue-57741-1.rs:14:22
15 LL | let y = match x {
16 | - this expression has type `Box<u32>`
17 LL | S::A { a } | S::B { b: a } => a,
18 | ^^^^^^^^^^^^^ expected `Box<u32>`, found `S`
20 = note: expected struct `Box<u32>`
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0308`.