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