]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/task-comm-14.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / task-comm-14.rs
index 82e4bd8f6d2a1688b30007e09e85b44c858acc2b..0735e3996eec10ec81986948a1157616b598d143 100644 (file)
@@ -19,7 +19,7 @@ pub fn main() {
     while (i > 0) {
         println!("{}", i);
         let tx = tx.clone();
-        Thread::spawn({let i = i; move|| { child(i, &tx) }}).detach();
+        Thread::spawn({let i = i; move|| { child(i, &tx) }});
         i = i - 1;
     }