8 let mut x
= Enum
::A(&mut n
);
10 Enum
::A(_
) if { x = Enum::B(false); false }
=> 1,
11 //~^ ERROR cannot assign in a pattern guard
12 //~| ERROR cannot assign `x` in match guard
13 Enum
::A(_
) if { let y = &mut x; *y = Enum::B(false); false }
=> 1,
14 //~^ ERROR cannot mutably borrow in a pattern guard
15 //~| ERROR cannot assign in a pattern guard
16 //~| ERROR cannot mutably borrow `x` in match guard