rust/src/test/run-pass/trivial-message.rs
2012-09-05 12:32:05 -07:00

13 lines
219 B
Rust

use pipes::{Port, Chan};
/*
This is about the simplest program that can successfully send a
message.
*/
fn main() {
let (ch, po) = pipes::stream();
ch.send(42);
let r = po.recv();
log(error, r);
}