]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/use-after-move-based-on-type.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / compile-fail / use-after-move-based-on-type.rs
index dc6f5e046b4b7878076c91fc3349b24ea3877b43..28eb4a12739fbaf45301152c01d434f59e27ec9f 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 fn main() {
-    let x = ~"Hello!";
+    let x = "Hello!".to_owned();
     let _y = x;
     println!("{}", x); //~ ERROR use of moved value
 }