1 error[E0505]: cannot move out of `b` because it is borrowed
2 --> $DIR/issue-27282-move-match-input-into-guard.rs:26:16
8 LL | || &mut false => {},
9 LL | || _ if { (|| { let bar = b; *bar = false; })();
10 | || ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move out of `b` occurs here
11 LL | || //~^ ERROR cannot move out of `b` because it is borrowed [E0505]
13 LL | || _ => panic!("surely we could never get here, since rustc warns it is unreachable."),
17 | |______borrow of `b` occurs here
18 | borrow later used here
20 error[E0382]: use of moved value: `*b`
21 --> $DIR/issue-27282-move-match-input-into-guard.rs:29:14
23 LL | _ if { (|| { let bar = b; *bar = false; })();
24 | ----------------------------------- value moved here
26 LL | &mut true => { println!("You might think we should get here"); },
27 | ^^^^ value used here after move
29 error: aborting due to 2 previous errors
31 Some errors occurred: E0382, E0505.
32 For more information about an error, try `rustc --explain E0382`.