Skip to content

Commit 14a7be3

Browse files
committed
test: Fix busted test. rs=bustage
1 parent c5ee981 commit 14a7be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn b() {
3030

3131
let q = &mut p; //~ NOTE prior loan as mutable granted here
3232

33-
p + 3; //~ ERROR loan of mutable local variable as immutable conflicts with prior loan
33+
p + 3; // ok for pure fns
3434
p.times(3); //~ ERROR loan of mutable local variable as immutable conflicts with prior loan
3535

3636
q.x += 1;

0 commit comments

Comments
 (0)