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

12 lines
169 B
Rust
Raw Normal View History

proto! stream {
stream:send<T:send> {
send(T) -> stream<T>
2012-07-16 17:12:53 -05:00
}
}
fn main() {
let (bc, _bp) = stream::init();
2012-08-03 14:48:14 -05:00
stream::client::send(bc, ~"abc");
2012-07-16 17:12:53 -05:00
}