Skip to content

Commit d7afcad

Browse files
author
Abhishek C. Sharma
committed
Fixed ambiguous associated types
1 parent e36172e commit d7afcad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/future/future/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,10 @@ extension_trait! {
153153
/// ```
154154
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
155155
#[cfg(any(feature = "unstable", feature = "docs"))]
156-
fn flatten(self) -> FlattenFuture<Self, <Self::Output as IntoFuture>::Future>
156+
fn flatten(self) -> impl Future<Output = <<Self as Future>::Output as IntoFuture>::Output> [FlattenFuture<Self, <<Self as Future>::Output as IntoFuture>::Future>]
157157
where
158158
Self: Future + Sized,
159-
Self::Output: IntoFuture
159+
<Self as Future>::Output: IntoFuture
160160
{
161161
FlattenFuture::new(self)
162162
}

0 commit comments

Comments
 (0)