#[legacy_exports]; export foo; use comm::*; fn foo(x: T) -> Port { let p = Port(); let c = Chan(&p); do task::spawn() |copy c, copy x| { c.send(x); } p }