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

12 lines
174 B
Rust
Raw Normal View History

proto! stream (
Stream:send<T:Send> {
send(T) -> Stream<T>
2012-07-16 17:12:53 -05:00
}
)
2012-07-16 17:12:53 -05:00
fn main() {
let (bc, _bp) = stream::init();
2012-09-19 00:45:24 -05:00
stream::client::send(move bc, ~"abc");
2012-07-16 17:12:53 -05:00
}