]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/task-comm-17.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / task-comm-17.rs
index 3a591d12864af124381c6bad381c03666dedd5d8..9db5465f7e96e77e03d0dbaa66fdb1490644f28b 100644 (file)
 
 // This test is specifically about spawning temporary closures.
 
-use std::task;
+use std::thread::Thread;
 
 fn f() {
 }
 
 pub fn main() {
-    task::spawn(move|| f() );
+    let _t = Thread::scoped(move|| f() ).join();
 }