14 let sv = SingleVariant::A;
16 // sv should not be captured as it is a SingleVariant
19 SingleVariant::A if condition => (),
26 // ts should be captured
27 let ts = TestStruct { x: 1, y: 1, z: 1 };
28 let _b = || { match ts {
29 TestStruct{ x: 1, .. } => (),
33 //~^ ERROR: cannot move out of `ts` because it is borrowed