fork/rust

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

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

master
558 B17 linesraw
1error[E0499]: cannot borrow `w.p.x` as mutable more than once at a time
2  --> $DIR/multilevel-path.rs:23:14
3   |
4LL |     let mut c = || {
5   |                 -- first mutable borrow occurs here
6LL |         w.p.x += 20;
7   |         ----- first borrow occurs due to use of `w.p.x` in closure
8...
9LL |     let py = &mut w.p.x;
10   |              ^^^^^^^^^^ second mutable borrow occurs here
11LL |
12LL |     c();
13   |     - first borrow later used here
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0499`.