1 error[E0506]: cannot assign to `p.x` because it is borrowed
2 --> $DIR/borrowck-assign-comp.rs:10:5
5 | -- `p.x` is borrowed here
8 | ^^^^^^^ `p.x` is assigned to here but it was already borrowed
10 | --- borrow later used here
12 error[E0506]: cannot assign to `p` because it is borrowed
13 --> $DIR/borrowck-assign-comp.rs:20:5
16 | ---- `p` is borrowed here
17 LL | p = Point {x: 5, y: 7};
18 | ^^^^^^^^^^^^^^^^^^^^^^ `p` is assigned to here but it was already borrowed
19 LL | p.x; // silence warning
20 LL | *q; // stretch loan
21 | -- borrow later used here
23 error[E0506]: cannot assign to `p.y` because it is borrowed
24 --> $DIR/borrowck-assign-comp.rs:31:5
27 | ---- `p.y` is borrowed here
29 | ^^^^^^^ `p.y` is assigned to here but it was already borrowed
31 | -- borrow later used here
33 error: aborting due to 3 previous errors
35 For more information about this error, try `rustc --explain E0506`.