rust/src/test/run-pass/task-comm-11.rs
2011-07-27 15:54:33 +02:00

11 lines
219 B
Rust

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