]> git.proxmox.com Git - rustc.git/blame - tests/ui/traits/vtable/issue-97381.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / traits / vtable / issue-97381.stderr
CommitLineData
923072b8
FG
1error[E0505]: cannot move out of `v` because it is borrowed
2 --> $DIR/issue-97381.rs:26:14
3 |
9ffffee4
FG
4LL | let v = [1, 2, 3]
5 | - binding `v` declared here
6...
923072b8
FG
7LL | let el = &v[0];
8 | - borrow of `v` occurs here
9LL |
10LL | for _ in v {
11 | ^ move out of `v` occurs here
12LL |
13LL | println!("{}", ***el > 0);
14 | ---- borrow later used here
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0505`.