16 lines
221 B
Rust
16 lines
221 B
Rust
|
|
|
|
|
|
// -*- rust -*-
|
|
fn main() {
|
|
let port[int] po = port();
|
|
let chan[int] ch = chan(po);
|
|
ch <| 10;
|
|
let int i;
|
|
po |> i;
|
|
assert (i == 10);
|
|
ch <| 11;
|
|
auto j;
|
|
po |> j;
|
|
assert (j == 11);
|
|
} |