1 error[E0308]: mismatched types
2 --> $DIR/field-access.rs:12:12
5 | --- unit variant defined here
7 LL | if let B::Fst = a {};
8 | ^^^^^^ - this expression has type `A`
10 | expected struct `A`, found enum `B`
12 help: you might have meant to use field `b` of type `B`
14 LL | if let B::Fst = a.b {};
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0308`.