fork/rust

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

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

master
513 B18 linesraw
1error[E0506]: cannot assign to `a.y` because it is borrowed
2  --> $DIR/union.rs:20:5
3   |
4LL |     let mut c = || {
5   |                 -- `a.y` is borrowed here
6...
7LL |         let _ = &mut a;
8   |                      - borrow occurs due to use in closure
9...
10LL |     a.y = 1;
11   |     ^^^^^^^ `a.y` is assigned to here but it was already borrowed
12...
13LL |     c();
14   |     - borrow later used here
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0506`.