]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/moves/moves-based-on-type-match-bindings.rs
Auto merge of #75912 - scottmcm:manuallydrop-vs-forget, r=Mark-Simulacrum
[rust.git] / src / test / ui / moves / moves-based-on-type-match-bindings.rs
index 59e5a8f684e9a2ffbe67cfa4174b3a4a017e2628..75fc6085f0aaaf3e168a7decdf1f99f7cbc604bf 100644 (file)
@@ -13,9 +13,9 @@ fn f10() {
         Foo {f} => {}
     };
 
-    touch(&x); //~ ERROR use of partially moved value: `x`
-    //~^ value used here after move
-    //~| move occurs because `x.f` has type `std::string::String`
+    touch(&x); //~ ERROR borrow of partially moved value: `x`
+    //~^ value borrowed here after partial move
+    //~| partial move occurs because `x.f` has type `std::string::String`
 }
 
 fn main() {}