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[E0308]: mismatched types
18 --> $DIR/field-access.rs:16:9
21 | --- unit variant defined here
24 | - this expression has type `A`
26 | ^^^^^^ expected struct `A`, found enum `B`
28 help: you might have meant to use field `b` of type `B`
33 error[E0308]: mismatched types
34 --> $DIR/field-access.rs:17:9
37 | --- unit variant defined here
40 | - this expression has type `A`
43 | ^^^^^^ expected struct `A`, found enum `B`
45 help: you might have meant to use field `b` of type `B`
50 error: aborting due to 3 previous errors
52 For more information about this error, try `rustc --explain E0308`.