@@ -139,11 +139,13 @@ extension_trait! {
139
139
"# ]
140
140
#[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
141
141
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
142
- fn select<F >( self , other: F ) ->
143
- impl Future <Output = Self :: Output > [ Select <Self , F >]
142
+ fn select<F >(
143
+ self ,
144
+ other: F
145
+ ) -> impl Future <Output = <Self as std:: future:: Future >:: Output > [ Select <Self , F >]
144
146
where
145
- Self : Sized + Future ,
146
- F : std:: future:: Future <Output = <Self as Future >:: Output >,
147
+ Self : std :: future :: Future + Sized ,
148
+ F : std:: future:: Future <Output = <Self as std :: future :: Future >:: Output >,
147
149
{
148
150
Select :: new( self , other)
149
151
}
@@ -178,12 +180,13 @@ extension_trait! {
178
180
"# ]
179
181
#[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
180
182
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
181
- fn try_select<F , T , E >( self , other: F ) ->
182
- impl Future <Output = Self :: Output > [ TrySelect <Self , F >]
183
+ fn try_select<F : std:: future:: Future , T , E >(
184
+ self ,
185
+ other: F
186
+ ) -> impl Future <Output = <Self as std:: future:: Future >:: Output > [ TrySelect <Self , F >]
183
187
where
184
- Self : Sized ,
185
- Self : Future <Output = Result <T , E >>,
186
- F : Future <Output = Self :: Output >,
188
+ Self : std:: future:: Future <Output = Result <T , E >> + Sized ,
189
+ F : std:: future:: Future <Output = <Self as std:: future:: Future >:: Output >,
187
190
{
188
191
TrySelect :: new( self , other)
189
192
}
0 commit comments