@@ -2080,8 +2080,7 @@ pub trait Iterator {
20802080fn try_collect < B > ( & mut self ) ->ChangeOutputType < Self :: Item , B >
20812081where
20822082Self : Sized ,
2083- <Self as Iterator >:: Item : Try ,
2084- <<Self as Iterator >:: Item as Try >:: Residual : Residual < B > ,
2083+ Self :: Item : Try < Residual : Residual < B > > ,
20852084B : FromIterator < <Self :: Item as Try >:: Output > ,
20862085{
20872086try_process ( ByRefSized ( self ) , |i| i. collect ( ) )
@@ -2689,12 +2688,13 @@ pub trait Iterator {
26892688#[ inline]
26902689#[ unstable( feature ="iterator_try_reduce" , reason ="new API" , issue ="87053" ) ]
26912690#[ rustc_do_not_const_check]
2692- fn try_reduce < F , R > ( & mut self , f : F ) ->ChangeOutputType < R , Option < R :: Output > >
2691+ fn try_reduce < R > (
2692+ & mut self ,
2693+ f : impl FnMut ( Self :: Item , Self :: Item ) ->R ,
2694+ ) ->ChangeOutputType < R , Option < R :: Output > >
26932695where
26942696Self : Sized ,
2695- F : FnMut ( Self :: Item , Self :: Item ) ->R ,
2696- R : Try < Output =Self :: Item > ,
2697- R :: Residual : Residual < Option < Self :: Item > > ,
2697+ R : Try < Output =Self :: Item , Residual : Residual < Option < Self :: Item > > > ,
26982698{
26992699let first =match self . next ( ) {
27002700Some ( i) => i,
@@ -2956,12 +2956,13 @@ pub trait Iterator {
29562956#[ inline]
29572957#[ unstable( feature ="try_find" , reason ="new API" , issue ="63178" ) ]
29582958#[ rustc_do_not_const_check]
2959- fn try_find < F , R > ( & mut self , f : F ) ->ChangeOutputType < R , Option < Self :: Item > >
2959+ fn try_find < R > (
2960+ & mut self ,
2961+ f : impl FnMut ( & Self :: Item ) ->R ,
2962+ ) ->ChangeOutputType < R , Option < Self :: Item > >
29602963where
29612964Self : Sized ,
2962- F : FnMut ( & Self :: Item ) ->R ,
2963- R : Try < Output =bool > ,
2964- R :: Residual : Residual < Option < Self :: Item > > ,
2965+ R : Try < Output =bool , Residual : Residual < Option < Self :: Item > > > ,
29652966{
29662967#[ inline]
29672968fn check < I , V , R > (