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