rust/src/test/run-pass/child-outlives-parent.rs
2012-01-06 22:40:31 -08:00

9 lines
155 B
Rust

// Reported as issue #126, child leaks the string.
use std;
import task;
fn child2(&&s: str) { }
fn main() { let x = task::spawn {|| child2("hi"); }; }