5 // This tests that the `help: consider dereferencing the boxed value` suggestion is made and works.
18 let x = Box::new(T::A(3));
20 T::A(a) | T::B(a) => a,
21 //~^ ERROR mismatched types [E0308]
22 //~^^ ERROR mismatched types [E0308]
25 let x = Box::new(S::A { a: 3 });
27 S::A { a } | S::B { b: a } => a,
28 //~^ ERROR mismatched types [E0308]
29 //~^^ ERROR mismatched types [E0308]