]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/auto-ref-slice-plus-ref.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / auto-ref-slice-plus-ref.rs
index 039df373d7a1167fc4f966e9ed94ed7922ded88a..8e0bdfdc74076620176e365d0f818a2553f7817c 100644 (file)
@@ -32,7 +32,7 @@ pub fn main() {
     (vec!(1)).as_slice().test_imm();
     (&[1]).test_imm();
     ("test").test_imm();
-    (~"test").test_imm();
+    ("test".to_owned()).test_imm();
     (&"test").test_imm();
 
     // FIXME: Other types of mutable vecs don't currently exist