]> 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 1290d4a25abc4d8e52f6a4846fb8e197d2d47109..75fc6085f0aaaf3e168a7decdf1f99f7cbc604bf 100644 (file)
@@ -13,9 +13,9 @@ fn f10() {
         Foo {f} => {}
     };
 
-    touch(&x); //~ ERROR borrow of moved value: `x`
+    touch(&x); //~ ERROR borrow of partially moved value: `x`
     //~^ value borrowed here after partial move
-    //~| move occurs because `x.f` has type `std::string::String`
+    //~| partial move occurs because `x.f` has type `std::string::String`
 }
 
 fn main() {}