1 error[E0506]: cannot assign to `*y.pointer` because it is borrowed (Ast)
2 --> $DIR/issue-45697-1.rs:30:9
4 29 | 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 29 | let z = copy_borrowed_ptr(&mut y);
13 | ------ borrow of `y` occurs here
15 | ^^^^^^^^^^^^^^^ use of borrowed `y`
17 error: aborting due to 2 previous errors