diff --git a/src/future/future/mod.rs b/src/future/future/mod.rs index fc800cb..569d032 100644 --- a/src/future/future/mod.rs +++ b/src/future/future/mod.rs @@ -363,7 +363,7 @@ extension_trait! { "#] #[cfg(any(feature = "unstable", feature = "docs"))] #[cfg_attr(feature = "docs", doc(cfg(unstable)))] - fn timeout(self, dur: Duration) -> impl Future [TimeoutFuture] + fn timeout(self, dur: Duration) -> impl Future [TimeoutFuture] where Self: Sized { TimeoutFuture::new(self, dur)