rust/src/test/run-pass/task-comm-11.rs

11 lines
210 B
Rust
Raw Normal View History

// xfail-stage0
2011-04-19 15:35:49 -05:00
fn start(chan[chan[str]] c) {
2010-08-11 17:05:33 -05:00
let port[str] p = port();
c <| chan(p);
}
2011-04-19 15:35:49 -05:00
fn main() {
2010-08-11 17:05:33 -05:00
let port[chan[str]] p = port();
auto child = spawn "child" start(chan(p));
auto c <- p;
}