We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5ee981 commit 14a7be3Copy full SHA for 14a7be3
src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs
@@ -30,7 +30,7 @@ fn b() {
30
31
let q = &mut p; //~ NOTE prior loan as mutable granted here
32
33
- p + 3; //~ ERROR loan of mutable local variable as immutable conflicts with prior loan
+ p + 3; // ok for pure fns
34
p.times(3); //~ ERROR loan of mutable local variable as immutable conflicts with prior loan
35
36
q.x += 1;
0 commit comments