]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/option-ext.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / option-ext.rs
index 63114da9d9db7582503c4373c3d17571292b124c..967ca621948a2edd240dcdfe3f207fa09a3b92a5 100644 (file)
@@ -9,10 +9,10 @@
 // except according to those terms.
 
 pub fn main() {
-    let thing = ~"{{ f }}";
-    let f = str::find_str(thing, ~"{{");
+    let thing = "{{ f }}".to_owned();
+    let f = thing.find_str("{{");
 
     if f.is_none() {
-        io::println(~"None!");
+        println!("None!");
     }
 }