mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
14 lines
261 B
Rust
14 lines
261 B
Rust
// run-pass
|
|
// Reported as issue #126, child leaks the string.
|
|
|
|
// pretty-expanded FIXME #23616
|
|
// ignore-emscripten no threads support
|
|
|
|
use std::thread;
|
|
|
|
fn child2(_s: String) { }
|
|
|
|
pub fn main() {
|
|
let _x = thread::spawn(move|| child2("hi".to_string()));
|
|
}
|