19 let a = A { b: B::Fst };
20 if let B::Fst = a.b {}; //~ ERROR mismatched types [E0308]
21 //~^ HELP you might have meant to use field `b` whose type is `B`
23 //~^ HELP you might have meant to use field `b` whose type is `B`
24 //~| HELP you might have meant to use field `b` whose type is `B`
25 B::Fst => (), //~ ERROR mismatched types [E0308]
26 B::Snd => (), //~ ERROR mismatched types [E0308]
29 let foo = Foo { bar: 42 };
30 match unsafe { foo.bar } {
31 //~^ HELP you might have meant to use field `bar` whose type is `u32`
32 1u32 => (), //~ ERROR mismatched types [E0308]