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

16 lines
216 B
Rust
Raw Normal View History

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