rust/src/test/run-pass/trivial-message.rs

15 lines
218 B
Rust

/*
This is about the simplest program that can successfully send a
message.
*/
fn main() {
let port[int] po = port();
let chan[int] ch = chan(po);
ch <| 42;
auto r;
po |> r;
log_err r;
}