#[legacy_modes]; extern mod std; fn start(c: pipes::Chan>) { let (ch, p) = pipes::stream(); c.send(ch); } fn main() { let (ch, p) = pipes::stream(); let child = task::spawn(|| start(ch) ); let c = p.recv(); }