]>
Commit | Line | Data |
---|---|---|
223e47cc LB |
1 | // Reported as issue #126, child leaks the string. |
2 | ||
c34b1796 | 3 | // pretty-expanded FIXME #23616 |
7453a54e | 4 | // ignore-emscripten no threads support |
c34b1796 | 5 | |
c34b1796 | 6 | use std::thread; |
223e47cc | 7 | |
1a4d82fc | 8 | fn child2(_s: String) { } |
223e47cc | 9 | |
970d7e83 | 10 | pub fn main() { |
c34b1796 | 11 | let _x = thread::spawn(move|| child2("hi".to_string())); |
970d7e83 | 12 | } |