2012-07-09 14:36:57 -05:00
|
|
|
// Test case for issue #2843.
|
|
|
|
//
|
|
|
|
|
2012-08-22 20:10:48 -05:00
|
|
|
proto! streamp (
|
2012-09-10 14:38:04 -05:00
|
|
|
open:send<T: Send> {
|
2012-07-09 14:36:57 -05:00
|
|
|
data(T) -> open<T>
|
|
|
|
}
|
2012-08-22 20:10:48 -05:00
|
|
|
)
|
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
|
|
|
}
|
|
|
|
|
2012-09-10 14:05:31 -05:00
|
|
|
fn main(args: ~[~str]) {
|
2012-07-09 14:36:57 -05:00
|
|
|
//os::getenv("FOO");
|
|
|
|
rendezvous();
|
|
|
|
}
|