rust/src/test/run-pass/child-outlives-parent.rs

4 lines
115 B
Rust
Raw Normal View History

// Reported as issue #126, child leaks the string.
2011-07-27 07:19:39 -05:00
fn child2(s: str) { }
2011-07-27 07:19:39 -05:00
fn main() { let x = spawn child2("hi"); }