summary refs log tree commit diff
path: root/src/test/run-pass/trivial-message.rs
blob: 487b440ee420f6a6982b9ae9b0b5025a3f00004d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std;
import 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(error, r);
}