rust/src/test/run-pass/child-outlives-parent.rs
2011-10-20 18:23:47 -07:00

9 lines
156 B
Rust

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