]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-27282-move-match-input-into-guard.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-27282-move-match-input-into-guard.stderr
1 error[E0382]: use of moved value: `*b`
2   --> $DIR/issue-27282-move-match-input-into-guard.rs:28:14
3    |
4 LL |         _ if { (|| { let bar = b; *bar = false; })();
5    |                 --             - variable moved due to use in closure
6    |                 |
7    |                 value moved into closure here
8 LL |                      false } => { },
9 LL |         &mut true => { println!("You might think we should get here"); },
10    |              ^^^^ value used here after move
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0382`.