fork/rust

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

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

master
792 B23 linesraw
1error[E0502]: cannot borrow `*v` as immutable because it is also borrowed as mutable
2  --> $DIR/borrowck-uniq-via-lend.rs:36:12
3   |
4LL |     let w = &mut v;
5   |             ------ mutable borrow occurs here
6LL |     borrow(&*v);
7   |            ^^^ immutable borrow occurs here
8LL |     w.use_mut();
9   |     - mutable borrow later used here
10
11error[E0502]: cannot borrow `*v` as immutable because it is also borrowed as mutable
12  --> $DIR/borrowck-uniq-via-lend.rs:53:12
13   |
14LL |     x = &mut v;
15   |         ------ mutable borrow occurs here
16LL |     borrow(&*v);
17   |            ^^^ immutable borrow occurs here
18LL |     x.use_mut();
19   |     - mutable borrow later used here
20
21error: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0502`.