2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(unused_must_use)]
|
2024-03-06 20:19:20 +00:00
|
|
|
//@ needs-threads
|
2015-03-22 20:13:15 +00:00
|
|
|
|
2011-09-20 02:02:53 +00:00
|
|
|
// Issue #922
|
|
|
|
|
2012-02-07 14:37:08 +00:00
|
|
|
// This test is specifically about spawning temporary closures.
|
2011-10-13 22:37:07 +00:00
|
|
|
|
2015-03-30 18:00:05 +00:00
|
|
|
use std::thread;
|
2013-05-25 02:35:29 +00:00
|
|
|
|
2024-08-24 03:32:52 +00:00
|
|
|
fn f() {}
|
2011-09-20 02:02:53 +00:00
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {
|
2024-08-24 03:32:52 +00:00
|
|
|
thread::spawn(move || f()).join();
|
2013-02-14 19:47:00 +00:00
|
|
|
}
|