fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
526 B18 linesraw
1error[E0505]: cannot move out of `v` because it is borrowed
2  --> $DIR/issue-97381.rs:26:14
3   |
4LL |     let v = [1, 2, 3]
5   |         - binding `v` declared here
6...
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`.