]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/E0007.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / test / compile-fail / E0007.rs
index bfc0f1afe3ad3d5bca94df7233a60cfeecd9ed9c..4be115b8afdace66329a8d4c5a97b31f32eb3346 100644 (file)
 fn main() {
     let x = Some("s".to_string());
     match x {
-        op_string @ Some(s) => {}, //~ ERROR E0007
-                                   //~| ERROR E0303
+        op_string @ Some(s) => {},
+        //~^ ERROR E0007
+        //~| NOTE binds an already bound by-move value by moving it
+        //~| ERROR E0303
         None => {},
     }
 }