Updated other affected tests.
This commit is contained in:
parent
dd6b005926
commit
f1c1db61e4
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue