File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11use either:: Either ;
2- use std:: future:: Future ;
2+ use std:: { future:: Future , marker :: PhantomData } ;
33
44pub struct Zero ;
55pub struct Succ < T : Nat > ( T ) ;
@@ -116,14 +116,17 @@ impl Network {
116116 _left_out : L ,
117117 _right : & Stage < RIn , ROut > ,
118118 _right_in : R ,
119- ) where
119+ ) -> Wire < <BiasedInput < RIn > as InputExt < R > >:: Output >
120+ where
120121 BiasedInput < RIn > : InputExt < R > ,
121122 Output < LOut > : OutputExt < L , Input = <BiasedInput < RIn > as InputExt < R > >:: Output > ,
122123 {
123124 todo ! ( )
124125 }
125126}
126127
128+ pub struct Wire < T > ( PhantomData < T > ) ;
129+
127130#[ cfg( test) ]
128131mod tests {
129132 use super :: * ;
@@ -264,7 +267,7 @@ mod tests {
264267 let dump_string = network. stage ( dump_string) ;
265268 let dump_client_response = network. stage ( dump_client_response) ;
266269
267- network. wire ( & chain_sync, _1, & dump_string, _0) ;
268- network. wire ( & chain_sync, _0, & dump_client_response, _0) ;
270+ let _ : Wire < String > = network. wire ( & chain_sync, _1, & dump_string, _0) ;
271+ let _ : Wire < ClientResponse > = network. wire ( & chain_sync, _0, & dump_client_response, _0) ;
269272 }
270273}
You can’t perform that action at this time.
0 commit comments