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

15 lines
228 B
Rust

use std;
import std::comm::*;
/*
This is about the simplest program that can successfully send a
message.
*/
fn main() {
let po = port();
let ch = chan(po);
send(ch, 42);
let r = recv(po);
log_err r;
}