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

9 lines
157 B
Rust
Raw Normal View History

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