]> git.lizzy.rs Git - rust.git/commitdiff
Updated other affected tests.
authorDavid Wood <david@davidtw.co>
Fri, 19 Jan 2018 22:04:01 +0000 (22:04 +0000)
committerDavid Wood <david@davidtw.co>
Sat, 27 Jan 2018 13:33:10 +0000 (13:33 +0000)
src/test/compile-fail/nll/reference-carried-through-struct-field.rs

index 1c1fc4799c3d1e8b545e3aba0758cd67437d705d..e64fecbe701e7a7a6dd62abb67777ffe0e60336e 100644 (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;
 }