]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-fail/unwind-misc-1.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-fail / unwind-misc-1.rs
index 59aaa7addcc94e203c0957a0db00684118528331..fae1a8a17738cd169007f86e6ebd03ac9d302526 100644 (file)
@@ -22,9 +22,9 @@ fn main() {
     let mut map = collections::HashMap::new();
     let mut arr = Vec::new();
     for _i in range(0u, 10u) {
-        arr.push(@~"key stuff");
+        arr.push(@"key stuff".to_owned());
         map.insert(arr.clone(),
-                   arr.clone().append([@~"value stuff"]));
+                   arr.clone().append([@"value stuff".to_owned()]));
         if arr.len() == 5 {
             fail!();
         }