9 lines
150 B
Rust
9 lines
150 B
Rust
use std;
|
|
|
|
fn main() {
|
|
let p = comm::Port();
|
|
let c = comm::Chan(p);
|
|
comm::send(c, ~100);
|
|
let v = comm::recv(p);
|
|
assert v == ~100;
|
|
} |