2010-08-03 12:20:29 -07:00
|
|
|
// Reported as issue #126, child leaks the string.
|
2011-08-13 15:20:11 -07:00
|
|
|
|
|
|
|
use std;
|
2011-12-13 16:25:51 -08:00
|
|
|
import task;
|
2011-08-13 15:20:11 -07:00
|
|
|
|
2012-07-13 22:57:48 -07:00
|
|
|
fn child2(&&s: ~str) { }
|
2010-08-03 12:20:29 -07:00
|
|
|
|
2012-07-13 22:57:48 -07:00
|
|
|
fn main() { let x = task::spawn(|| child2(~"hi") ); }
|