rust/src/test/run-pass/unique-send.rs
2012-09-05 12:32:05 -07:00

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;
}