4 #![feature(type_alias_impl_trait)]
6 use std::future::Future;
7 use std::marker::PhantomData;
14 _phantom: PhantomData<T>,
17 impl<T> Stream for Empty<T> {
22 type LineStream<'a, Repr>: Stream<Item = Repr> where Self: 'a;
23 type LineStreamFut<'a, Repr>: Future<Output = Self::LineStream<'a, Repr>> where Self: 'a;
24 fn line_stream<'a, Repr>(&'a self) -> Self::LineStreamFut<'a, Repr>;
30 type LineStream<'a, Repr> = impl Stream<Item = Repr>;
31 type LineStreamFut<'a, Repr> = impl Future<Output = Self::LineStream<'a, Repr>>;
32 fn line_stream<'a, Repr>(&'a self) -> Self::LineStreamFut<'a, Repr> {
33 async { Empty { _phantom: PhantomData } }