File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: d39f6fc676267f8009c0aad6716c53b0828859ab
2
+ refs/heads/master: 053bdcac2d1b6872fe54b6c928910a3eba8eca67
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5
5
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
Original file line number Diff line number Diff line change
1
+ // xfail-pretty
2
+ // xfail-win32
3
+ // xfail-test
4
+
5
+ // Generated from pipe compiler
6
+ mod stream {
7
+ fn init < T : send > ( ) -> ( client:: stream < T > , server:: stream < T > ) {
8
+ pipes:: entangle ( )
9
+ }
10
+ enum stream < T : send > { send( T , server:: stream < T > ) , }
11
+ mod client {
12
+ fn send < T : send > ( +pipe : stream < T > , +x_0 : T ) -> stream < T > {
13
+ {
14
+ let ( c, s) = pipes:: entangle ( ) ;
15
+ let message = stream:: send ( x_0, s) ;
16
+ pipes:: send ( pipe, message) ;
17
+ c
18
+ }
19
+ }
20
+ type stream < T : send > = pipes:: send_packet < stream:: stream < T > > ;
21
+ }
22
+ mod server {
23
+ type stream < T : send > = pipes:: recv_packet < stream:: stream < T > > ;
24
+ }
25
+ }
26
+
27
+ fn main ( ) {
28
+ let ( bc, _bp) = stream:: init ( ) ;
29
+
30
+ stream:: client:: send ( bc, "abc" ) ;
31
+ }
You can’t perform that action at this time.
0 commit comments