@@ -289,10 +289,10 @@ extension_trait! {
289289 use async_std::future;
290290
291291 let a = future::ready(1u8);
292- let b = future::ready(2u8 );
292+ let b = future::ready(2u16 );
293293
294294 let f = a.join(b);
295- assert_eq!(f.await, (1u8, 2u8 ));
295+ assert_eq!(f.await, (1u8, 2u16 ));
296296 # });
297297 ```
298298 "# ]
@@ -304,7 +304,7 @@ extension_trait! {
304304 ) -> impl Future <Output = ( <Self as std:: future:: Future >:: Output , <F as std:: future:: Future >:: Output ) > [ Join <Self , F >]
305305 where
306306 Self : std:: future:: Future + Sized ,
307- F : std:: future:: Future < Output = < Self as std :: future :: Future > :: Output > ,
307+ F : std:: future:: Future ,
308308 {
309309 Join :: new( self , other)
310310 }
@@ -328,30 +328,30 @@ extension_trait! {
328328 use async_std::prelude::*;
329329 use async_std::future;
330330
331- let a = future::ready(Err("Error"));
331+ let a = future::ready(Err::<u8, &str> ("Error"));
332332 let b = future::ready(Ok(1u8));
333333
334334 let f = a.try_join(b);
335335 assert_eq!(f.await, Err("Error"));
336336
337337 let a = future::ready(Ok::<u8, String>(1u8));
338- let b = future::ready(Ok::<u8 , String>(2u8 ));
338+ let b = future::ready(Ok::<u16 , String>(2u16 ));
339339
340340 let f = a.try_join(b);
341- assert_eq!(f.await, Ok((1u8, 2u8 )));
341+ assert_eq!(f.await, Ok((1u8, 2u16 )));
342342 #
343343 # Ok(()) }) }
344344 ```
345345 "# ]
346346 #[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
347347 #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
348- fn try_join<F , T , E >(
348+ fn try_join<F , A , B , E >(
349349 self ,
350350 other: F
351- ) -> impl Future <Output = Result <( T , T ) , E >> [ TryJoin <Self , F >]
351+ ) -> impl Future <Output = Result <( A , B ) , E >> [ TryJoin <Self , F >]
352352 where
353- Self : std:: future:: Future <Output = Result <T , E >> + Sized ,
354- F : std:: future:: Future <Output = < Self as std :: future :: Future > :: Output >,
353+ Self : std:: future:: Future <Output = Result <A , E >> + Sized ,
354+ F : std:: future:: Future <Output = Result < B , E > >,
355355 {
356356 TryJoin :: new( self , other)
357357 }
0 commit comments