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

9 lines
158 B
Rust
Raw Normal View History

// Reported as issue #126, child leaks the string.
use std;
import std::task;
2011-09-12 05:39:38 -05:00
fn child2(-s: str) { }
2011-09-02 17:34:58 -05:00
fn main() { let x = task::spawn(bind child2("hi")); }