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