fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0382]: use of moved value: `b` 2 --> $DIR/issue-27282-move-match-input-into-guard.rs:16:14 3 | 4LL | let b = &mut true; 5 | - move occurs because `b` has type `&mut bool`, which does not implement the `Copy` trait 6... 7LL | _ if { (|| { let bar = b; *bar = false; })(); 8 | -- - variable moved due to use in closure 9 | | 10 | value moved into closure here 11LL | false } => { }, 12LL | &mut true => { println!("You might think we should get here"); }, 13 | ^^^^ value used here after move 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0382`.