]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-27282-move-match-input-into-guard.stderr
Merge commit 'a98e7ab8b94485be6bd03e0c6b8682ecab5b52e6' into clippyup
[rust.git] / src / test / ui / borrowck / 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:12:5
3    |
4 LL |     let b = &mut true;
5    |         - move occurs because `b` has type `&mut bool`, which does not implement the `Copy` trait
6 LL |     match b {
7    |     ^^^^^^^ value used here after move
8 ...
9 LL |         _ if { (|| { let bar = b; *bar = false; })();
10    |                 --             - variable moved due to use in closure
11    |                 |
12    |                 value moved into closure here
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0382`.