]> 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 29bdbebbc3edfe2b981704c6b5d52301fcbaeb0d..967ca621948a2edd240dcdfe3f207fa09a3b92a5 100644 (file)
@@ -8,11 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn main() {
-    let thing = ~"{{ f }}";
-    let f = str::find_str(thing, ~"{{");
+pub fn main() {
+    let thing = "{{ f }}".to_owned();
+    let f = thing.find_str("{{");
 
     if f.is_none() {
-        io::println(~"None!");
+        println!("None!");
     }
 }