Skip to content

Commit 801e049

Browse files
committed
Added a test case for issue #2834.
1 parent 20f7c7c commit 801e049

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Test case for issue #2843.
2+
//
3+
// xfail-test
4+
5+
proto! streamp {
6+
open:send<T: send> {
7+
data(T) -> open<T>
8+
}
9+
}
10+
11+
fn rendezvous() {
12+
let (c, s) = streamp::init();
13+
let streams: ~[streamp::client::open<int>] = ~[c];
14+
15+
#error("%?", streams[0]);
16+
}
17+
18+
fn main(args: ~[str]) {
19+
//os::getenv("FOO");
20+
rendezvous();
21+
}

0 commit comments

Comments
 (0)