diff --git a/src/main.rs b/src/main.rs index 5825c3c..f39b5f0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,7 +25,7 @@ mod fut { pub trait Stream { type Item; - fn map(self, f: F) -> Map + fn map(self, f: F) -> Map where F: FnMut(Self::Item) -> T, Self: Sized, @@ -68,10 +68,9 @@ mod fut { } } - impl Stream for Map + impl Stream for Map where - St: Stream, - F: FnOnce1, + F: FnOnce1, F::Output: Future, { type Item = ::Output;