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