Updated other affected tests.

This commit is contained in:
David Wood 2018-01-19 22:04:01 +00:00
parent dd6b005926
commit f1c1db61e4
No known key found for this signature in database
GPG key ID: 01760B4F9F53F154

View file

@ -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;
}