]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-fail/issue-3029.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-fail / issue-3029.rs
index 6f4a3f5ab1d2e337883fbe208a424ceef74f95fb..b3b1fd2082b8c7006bda013489f8f20d2ec8b551 100644 (file)
@@ -8,11 +8,16 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unnecessary_allocation)]
+#![allow(unreachable_code)]
+#![allow(unused_variable)]
+
+
 // error-pattern:so long
 fn main() {
-    let x = ~[];
-    let y = ~[3];
+    let mut x = Vec::new();
+    let y = vec!(3);
     fail!("so long");
-    x += y;
-    ~"good" + ~"bye";
+    x.push_all_move(y);
+    "good".to_owned() + "bye".to_owned();
 }