@@ -166,11 +166,13 @@ extension_trait! {
166
166
"# ]
167
167
#[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
168
168
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
169
- fn select<F >( self , other: F ) ->
170
- impl Future <Output = Self :: Output > [ Select <Self , F >]
169
+ fn select<F >(
170
+ self ,
171
+ other: F
172
+ ) -> impl Future <Output = <Self as std:: future:: Future >:: Output > [ Select <Self , F >]
171
173
where
172
- Self : Sized + Future ,
173
- F : std:: future:: Future <Output = <Self as Future >:: Output >,
174
+ Self : std :: future :: Future + Sized ,
175
+ F : std:: future:: Future <Output = <Self as std :: future :: Future >:: Output >,
174
176
{
175
177
Select :: new( self , other)
176
178
}
@@ -205,12 +207,13 @@ extension_trait! {
205
207
"# ]
206
208
#[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
207
209
#[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
208
- fn try_select<F , T , E >( self , other: F ) ->
209
- impl Future <Output = Self :: Output > [ TrySelect <Self , F >]
210
+ fn try_select<F : std:: future:: Future , T , E >(
211
+ self ,
212
+ other: F
213
+ ) -> impl Future <Output = <Self as std:: future:: Future >:: Output > [ TrySelect <Self , F >]
210
214
where
211
- Self : Sized ,
212
- Self : Future <Output = Result <T , E >>,
213
- F : Future <Output = Self :: Output >,
215
+ Self : std:: future:: Future <Output = Result <T , E >> + Sized ,
216
+ F : std:: future:: Future <Output = <Self as std:: future:: Future >:: Output >,
214
217
{
215
218
TrySelect :: new( self , other)
216
219
}
0 commit comments