rust/src/test/run-pass/task-comm-11.rs
2011-04-19 13:35:49 -07:00

11 lines
210 B
Rust

// xfail-stage0
fn start(chan[chan[str]] c) {
let port[str] p = port();
c <| chan(p);
}
fn main() {
let port[chan[str]] p = port();
auto child = spawn "child" start(chan(p));
auto c <- p;
}