diff --git a/src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs b/src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs index 8052933d405..a64dde12d03 100644 --- a/src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs +++ b/src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs @@ -30,7 +30,7 @@ fn b() { let q = &mut p; //~ NOTE prior loan as mutable granted here - p + 3; //~ ERROR loan of mutable local variable as immutable conflicts with prior loan + p + 3; // ok for pure fns p.times(3); //~ ERROR loan of mutable local variable as immutable conflicts with prior loan q.x += 1;