]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-6801.stderr
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-6801.stderr
1 error[E0505]: cannot move out of `x` because it is borrowed
2 --> $DIR/issue-6801.rs:19:13
3 |
4 LL | let sq = || { *x * *x };
5 | -- - borrow occurs due to use in closure
6 | |
7 | borrow of `x` occurs here
8 LL |
9 LL | twice(x);
10 | ^ move out of `x` occurs here
11 LL | invoke(sq);
12 | -- borrow later used here
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0505`.