rust/src/test/run-pass/task-comm-chan-cleanup3.rs

9 lines
133 B
Rust
Raw Normal View History

extern mod std;
fn main() {
let c = {
2012-08-27 14:22:25 -07:00
let p = comm::Port();
comm::Chan(p)
};
comm::send(c, ~"coffee");
}