]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/yield1.rs
port over the tests to use the new API
[rust.git] / src / test / run-pass / yield1.rs
index 3b4795a47a12ea03f05efd7057aec703ba2a3594..a5234cf8d129fbfb2f94aeb815f7739e06ea3e05 100644 (file)
@@ -4,10 +4,10 @@
 import task::*;
 
 fn main() {
-    let other = task::spawn_joinable((), child);
+    let other = task::spawn_joinable {|| child(); };
     #error("1");
     yield();
     join(other);
 }
 
-fn child(&&_i: ()) { #error("2"); }
+fn child() { #error("2"); }