2019-07-26 21:54:25 +00:00
|
|
|
// run-pass
|
2010-08-03 19:20:29 +00:00
|
|
|
// Reported as issue #126, child leaks the string.
|
2011-08-13 22:20:11 +00:00
|
|
|
|
2015-03-22 20:13:15 +00:00
|
|
|
// pretty-expanded FIXME #23616
|
2016-02-11 11:34:41 +00:00
|
|
|
// ignore-emscripten no threads support
|
2015-03-22 20:13:15 +00:00
|
|
|
|
2015-03-30 18:00:05 +00:00
|
|
|
use std::thread;
|
2011-08-13 22:20:11 +00:00
|
|
|
|
2014-05-22 23:57:53 +00:00
|
|
|
fn child2(_s: String) { }
|
2010-08-03 19:20:29 +00:00
|
|
|
|
2013-05-08 04:33:31 +00:00
|
|
|
pub fn main() {
|
2015-03-30 18:00:05 +00:00
|
|
|
let _x = thread::spawn(move|| child2("hi".to_string()));
|
2013-05-08 04:33:31 +00:00
|
|
|
}
|