Skip to content

Commit f1c1db6

Browse files
committed
Updated other affected tests.
1 parent dd6b005 commit f1c1db6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/test/compile-fail/nll/reference-carried-through-struct-field.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ fn foo() {
2020
let wrapper = Wrap { w: &mut x };
2121
x += 1; //[ast]~ ERROR cannot assign to `x` because it is borrowed [E0506]
2222
//[mir]~^ ERROR cannot assign to `x` because it is borrowed [E0506]
23-
//[mir]~^^ ERROR cannot use `x` because it was mutably borrowed [E0503]
2423
*wrapper.w += 1;
2524
}
2625

0 commit comments

Comments
 (0)