2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(unused_must_use)]
|
2016-02-11 12:34:41 +01:00
|
|
|
// ignore-emscripten no threads support
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2011-09-19 19:02:53 -07:00
|
|
|
// Issue #922
|
|
|
|
|
2012-02-07 06:37:08 -08:00
|
|
|
// This test is specifically about spawning temporary closures.
|
2011-10-13 15:37:07 -07:00
|
|
|
|
2015-03-30 11:00:05 -07:00
|
|
|
use std::thread;
|
2013-05-24 19:35:29 -07:00
|
|
|
|
2011-09-19 19:02:53 -07:00
|
|
|
fn f() {
|
|
|
|
}
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2015-04-13 15:15:32 -07:00
|
|
|
thread::spawn(move|| f() ).join();
|
2013-02-14 11:47:00 -08:00
|
|
|
}
|