We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e36172e commit d7afcadCopy full SHA for d7afcad
src/future/future/mod.rs
@@ -153,10 +153,10 @@ extension_trait! {
153
/// ```
154
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
155
#[cfg(any(feature = "unstable", feature = "docs"))]
156
- fn flatten(self) -> FlattenFuture<Self, <Self::Output as IntoFuture>::Future>
+ fn flatten(self) -> impl Future<Output = <<Self as Future>::Output as IntoFuture>::Output> [FlattenFuture<Self, <<Self as Future>::Output as IntoFuture>::Future>]
157
where
158
Self: Future + Sized,
159
- Self::Output: IntoFuture
+ <Self as Future>::Output: IntoFuture
160
{
161
FlattenFuture::new(self)
162
}
0 commit comments