1 error[E0506]: cannot assign to `*y.pointer` because it is borrowed (Ast)
2 --> $DIR/issue-45697-1.rs:30:9
4 LL | let z = copy_borrowed_ptr(&mut y);
5 | - borrow of `*y.pointer` occurs here
7 | ^^^^^^^^^^^^^^^ assignment to borrowed `*y.pointer` occurs here
9 error[E0503]: cannot use `*y.pointer` because it was mutably borrowed (Mir)
10 --> $DIR/issue-45697-1.rs:30:9
12 LL | let z = copy_borrowed_ptr(&mut y);
13 | ------ borrow of `y` occurs here
15 | ^^^^^^^^^^^^^^^ use of borrowed `y`
18 | --------------- borrow later used here
20 error[E0506]: cannot assign to `*y.pointer` because it is borrowed (Mir)
21 --> $DIR/issue-45697-1.rs:30:9
23 LL | let z = copy_borrowed_ptr(&mut y);
24 | ------ borrow of `*y.pointer` occurs here
26 | ^^^^^^^^^^^^^^^ assignment to borrowed `*y.pointer` occurs here
29 | --------------- borrow later used here
31 error: aborting due to 3 previous errors
33 Some errors occurred: E0503, E0506.
34 For more information about an error, try `rustc --explain E0503`.