about summary refs log tree commit diff
path: root/src/test/run-pass/spawn.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/spawn.rs')
-rw-r--r--src/test/run-pass/spawn.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/spawn.rs b/src/test/run-pass/spawn.rs
index 7e486a1129d..d95f032e814 100644
--- a/src/test/run-pass/spawn.rs
+++ b/src/test/run-pass/spawn.rs
@@ -13,7 +13,7 @@ extern mod extra;
 use std::task;
 
 pub fn main() {
-    task::spawn(|| child(10) );
+    task::spawn(proc() child(10) );
 }
 
 fn child(i: int) { error!("{}", i); assert!((i == 10)); }