]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/spawn-types.rs
Replace all ~"" with "".to_owned()
[rust.git] / src / test / run-pass / spawn-types.rs
index 52921244ddc91805e0fdecb837c68139836493ae..830dce1d3cb2eba8494f5877a1ee74f501d6ae5c 100644 (file)
 type ctx = Sender<int>;
 
 fn iotask(_tx: &ctx, ip: ~str) {
-    assert_eq!(ip, ~"localhost");
+    assert_eq!(ip, "localhost".to_owned());
 }
 
 pub fn main() {
     let (tx, _rx) = channel::<int>();
-    task::spawn(proc() iotask(&tx, ~"localhost") );
+    task::spawn(proc() iotask(&tx, "localhost".to_owned()) );
 }