diff --git a/src/main.rs b/src/main.rs index fea5779..63ce0ed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,7 +28,6 @@ mod fut { pub trait Stream { type Item; - fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll>; fn map(self, f: F) -> Map where @@ -74,10 +73,6 @@ mod fut { I: Iterator, { type Item = I::Item; - - fn poll_next(mut self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll> { - loop {} - } } pub struct Map { @@ -85,18 +80,6 @@ mod fut { f: F, } - impl Stream for Map - where - St: Stream, - F: FnMut(St::Item), - { - type Item = F::Output; - - fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { - loop {} - } - } - pub trait FnOnce1 { type Output; fn call_once(self, arg: A) -> Self::Output; @@ -118,10 +101,6 @@ mod fut { F: FnOnce1, { type Item = F::Output; - - fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { - loop {} - } } pub struct ForEach { @@ -156,10 +135,6 @@ mod fut { St::Item: Future, { type Item = ::Output; - - fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll> { - loop {} - } } }