rust/src/test/run-pass/child-outlives-parent.rs
2011-07-27 15:54:33 +02:00

5 lines
131 B
Rust

// xfail-stage0
// Reported as issue #126, child leaks the string.
fn child2(s: str) { }
fn main() { let x = spawn child2("hi"); }