1 error[E0502]: cannot borrow `p` as mutable because it is also borrowed as immutable
2 --> $DIR/borrowck-loan-rcvr.rs:23:14
5 | - ------ ^^ mutable borrow occurs here
7 | | immutable borrow later used by call
8 | immutable borrow occurs here
10 | - second borrow occurs due to use of `p` in closure
12 error[E0502]: cannot borrow `p` as immutable because it is also borrowed as mutable
13 --> $DIR/borrowck-loan-rcvr.rs:34:5
16 | ------ mutable borrow occurs here
18 | ^ immutable borrow occurs here
21 | -------- mutable borrow later used here
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0502`.