]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/estr-uniq.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / estr-uniq.rs
index 80011daf560ad1af7ccc5bde7350e0fd1f8da3e8..e879453f7c981e7869bab403fa76cf028a62f7bf 100644 (file)
@@ -11,9 +11,9 @@
 #![allow(dead_assignment)]
 
 pub fn main() {
-    let x : ~str = ~"hello";
-    let _y : ~str = ~"there";
-    let mut z = ~"thing";
+    let x : ~str = "hello".to_owned();
+    let _y : ~str = "there".to_owned();
+    let mut z = "thing".to_owned();
     z = x;
     assert_eq!(z[0], ('h' as u8));
     assert_eq!(z[4], ('o' as u8));