2010-08-03 14:20:29 -05:00
|
|
|
// Reported as issue #126, child leaks the string.
|
2011-08-13 17:20:11 -05:00
|
|
|
|
2012-09-11 19:46:20 -05:00
|
|
|
extern mod std;
|
2011-08-13 17:20:11 -05:00
|
|
|
|
2012-07-14 00:57:48 -05:00
|
|
|
fn child2(&&s: ~str) { }
|
2010-08-03 14:20:29 -05:00
|
|
|
|
2012-07-14 00:57:48 -05:00
|
|
|
fn main() { let x = task::spawn(|| child2(~"hi") ); }
|