about summary refs log tree commit diff
path: root/src/test/run-pass/threads.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/threads.rs')
-rw-r--r--src/test/run-pass/threads.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/threads.rs b/src/test/run-pass/threads.rs
index 02817a285dd..c47ca0db2a1 100644
--- a/src/test/run-pass/threads.rs
+++ b/src/test/run-pass/threads.rs
@@ -13,7 +13,7 @@ use std::thread::Thread;
 pub fn main() {
     let mut i = 10;
     while i > 0 {
-        Thread::spawn({let i = i; move|| child(i)}).detach();
+        Thread::spawn({let i = i; move|| child(i)});
         i = i - 1;
     }
     println!("main thread exiting");