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