rust/src/test/run-pass/issue-2834.rs

21 lines
310 B
Rust
Raw Normal View History

2012-07-09 14:36:57 -05:00
// Test case for issue #2843.
//
proto! streamp (
open:send<T: Send> {
2012-07-09 14:36:57 -05:00
data(T) -> open<T>
}
)
2012-07-09 14:36:57 -05:00
fn rendezvous() {
let (c, s) = streamp::init();
let streams: ~[streamp::client::open<int>] = ~[c];
2012-08-22 19:24:52 -05:00
error!("%?", streams[0]);
2012-07-09 14:36:57 -05:00
}
fn main() {
2012-07-09 14:36:57 -05:00
//os::getenv("FOO");
rendezvous();
}