]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/borrowck/move-in-pattern-mut.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / borrowck / move-in-pattern-mut.rs
index 175eb3b7a04d1168237ec991cbbd658f9abfb48b..b5c275bf28caf444b9fdd144cda811cd67b4a681 100644 (file)
@@ -15,9 +15,9 @@ fn main() {
     if let Some(mut x) = s {
         x = S;
     }
-    foo(s); //~ ERROR use of moved value: `s`
+    foo(s); //~ ERROR use of partially moved value: `s`
     let mut e = E::V { s: S };
     let E::V { s: mut x } = e;
     x = S;
-    bar(e); //~ ERROR use of moved value: `e`
+    bar(e); //~ ERROR use of partially moved value: `e`
 }