rust/src/test/run-pass/child-outlives-parent.rs
Brian Anderson d8a833dccd Convert some comm tests to istrs. Issue #855
These spawn thunks need to take move-mode strings to be correct
2011-09-01 16:53:53 -07:00

9 lines
160 B
Rust

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