rust/src/test/run-pass/child-outlives-parent.rs
2010-08-03 12:20:29 -07:00

8 lines
118 B
Rust

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