We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18ac4a8 commit d594f37Copy full SHA for d594f37
src/test/run-pass/issue-2930.rs
@@ -1,22 +1,6 @@
1
-// Generated from pipe compiler
2
-mod stream {
3
- fn init<T: send>() -> (client::stream<T>, server::stream<T>) {
4
- pipes::entangle()
5
- }
6
- enum stream<T: send> { send(T, server::stream<T>), }
7
- mod client {
8
- fn send<T: send>(+pipe: stream<T>, +x_0: T) -> stream<T> {
9
- {
10
- let (c, s) = pipes::entangle();
11
- let message = stream::send(x_0, s);
12
- pipes::send(pipe, message);
13
- c
14
15
16
- type stream<T: send> = pipes::send_packet<stream::stream<T>>;
17
18
- mod server {
19
- type stream<T: send> = pipes::recv_packet<stream::stream<T>>;
+proto! stream {
+ stream:send<T:send> {
+ send(T) -> stream<T>
20
}
21
22
0 commit comments