1 error[E0506]: cannot assign to `p` because it is borrowed
2 --> $DIR/mut_while_borrow.rs:9:5
5 | -- borrow of `p` occurs here
7 | ^^^^^^ assignment to borrowed `p` occurs here
8 LL | println!("{}", r);
9 | - borrow later used here
11 error: aborting due to previous error
13 For more information about this error, try `rustc --explain E0506`.