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

10 lines
203 B
Rust
Raw Normal View History

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