2010-08-03 14:20:29 -05:00
|
|
|
// Reported as issue #126, child leaks the string.
|
2011-08-13 17:20:11 -05:00
|
|
|
|
|
|
|
use std;
|
|
|
|
import std::task;
|
|
|
|
|
2011-09-01 18:39:51 -05:00
|
|
|
fn child2(s: -istr) { }
|
2010-08-03 14:20:29 -05:00
|
|
|
|
2011-09-01 18:39:51 -05:00
|
|
|
fn main() { let x = task::spawn(bind child2(~"hi")); }
|