Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated other affected tests.
  • Loading branch information
davidtwco committed Jan 27, 2018
1 parent dd6b005 commit f1c1db6
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -20,7 +20,6 @@ fn foo() {
let wrapper = Wrap { w: &mut x };
x += 1; //[ast]~ ERROR cannot assign to `x` because it is borrowed [E0506]
//[mir]~^ ERROR cannot assign to `x` because it is borrowed [E0506]
//[mir]~^^ ERROR cannot use `x` because it was mutably borrowed [E0503]
*wrapper.w += 1;
}

Expand Down

0 comments on commit f1c1db6

Please sign in to comment.