// xfail-stage0 // -*- rust -*- fn main() { let port[int] p = port(); spawn child(chan(p)); let int y; y <- p; log "received"; log y; assert (y == 10); } fn child(chan[int] c) { c <| 10; }