]> git.proxmox.com Git - rustc.git/blame - src/test/run-pass/child-outlives-parent.rs
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / run-pass / child-outlives-parent.rs
CommitLineData
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 6use std::thread;
223e47cc 7
1a4d82fc 8fn child2(_s: String) { }
223e47cc 9
970d7e83 10pub fn main() {
c34b1796 11 let _x = thread::spawn(move|| child2("hi".to_string()));
970d7e83 12}