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

9 lines
153 B
Rust
Raw Normal View History

// Reported as issue #126, child leaks the string.
use std;
import task;
2011-10-20 22:34:04 -05:00
fn child2(&&s: str) { }
2012-06-30 18:19:07 -05:00
fn main() { let x = task::spawn(|| child2("hi") ); }