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