2018-08-30 12:18:55 +00:00
|
|
|
// run-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(unused_must_use)]
|
2016-02-11 11:34:41 +00:00
|
|
|
// ignore-emscripten no threads support
|
2015-03-22 20:13:15 +00:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
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
|
|
|
|
2011-09-20 02:02:53 +00:00
|
|
|
fn f() {
|
|
|
|
}
|
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {
|
2015-04-13 22:15:32 +00:00
|
|
|
thread::spawn(move|| f() ).join();
|
2013-02-14 19:47:00 +00:00
|
|
|
}
|