]> 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 7e8a8867a7c5f8d6f89d820521d4f2699f5505d0..b3b1fd2082b8c7006bda013489f8f20d2ec8b551 100644 (file)
@@ -8,9 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#[allow(unnecessary_allocation)];
-#[allow(unreachable_code)];
-#[allow(unused_variable)];
+#![allow(unnecessary_allocation)]
+#![allow(unreachable_code)]
+#![allow(unused_variable)]
 
 
 // error-pattern:so long
@@ -19,5 +19,5 @@ fn main() {
     let y = vec!(3);
     fail!("so long");
     x.push_all_move(y);
-    ~"good" + ~"bye";
+    "good".to_owned() + "bye".to_owned();
 }