1 error[E0503]: cannot use `p` because it was mutably borrowed
2 --> $DIR/borrowck-loan-rcvr-overloaded-op.rs:38:5
5 | ------ borrow of `p` occurs here
8 | ^ use of borrowed `p`
10 LL | *q + 3; // OK to use the new alias `q`
11 | -- borrow later used here
13 error[E0502]: cannot borrow `p` as immutable because it is also borrowed as mutable
14 --> $DIR/borrowck-loan-rcvr-overloaded-op.rs:39:5
17 | ------ mutable borrow occurs here
20 | ^^^^^^^^^^ immutable borrow occurs here
22 LL | *q + 3; // OK to use the new alias `q`
23 | -- mutable borrow later used here
25 error: aborting due to 2 previous errors
27 Some errors have detailed explanations: E0502, E0503.
28 For more information about an error, try `rustc --explain E0502`.