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;
|
|
|
|
|
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") ); }
|