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;
|
2011-12-13 18:25:51 -06:00
|
|
|
import task;
|
2011-08-13 17:20:11 -05:00
|
|
|
|
2011-10-20 22:34:04 -05:00
|
|
|
fn child2(&&s: str) { }
|
2010-08-03 14:20:29 -05:00
|
|
|
|
2012-06-30 18:19:07 -05:00
|
|
|
fn main() { let x = task::spawn(|| child2("hi") ); }
|