2018-08-30 12:18:55 +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
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2015-03-30 18:00:05 +00:00
|
|
|
use std::thread;
|
2013-05-25 02:35:29 +00:00
|
|
|
|
2013-02-02 03:43:17 +00:00
|
|
|
pub fn main() {
|
2015-04-13 22:15:32 +00:00
|
|
|
thread::spawn(move|| child("Hello".to_string()) ).join();
|
2012-01-05 05:14:53 +00:00
|
|
|
}
|
2010-08-11 22:05:33 +00:00
|
|
|
|
2014-05-22 23:57:53 +00:00
|
|
|
fn child(_s: String) {
|
2011-07-13 22:44:09 +00:00
|
|
|
|
2011-08-13 01:34:19 +00:00
|
|
|
}
|