16 lines
216 B
Rust
16 lines
216 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;
|
|
}
|