rust/src/test/run-pass/unique-send.rs

11 lines
176 B
Rust

use std;
import comm;
import task;
fn main() {
let p = comm::port();
let c = comm::chan(p);
comm::send(c, ~100);
let v = comm::recv(p);
assert v == ~100;
}