5 // This should pass, but seems to run into a TAIT bug.
7 #![feature(type_alias_impl_trait)]
9 use std::future::Future;
16 impl<T> Stream for Empty<T> {
19 fn empty<T>() -> Empty<T> {
24 type LineStream<'a, Repr>: Stream<Item = Repr> where Self: 'a;
26 type LineStreamFut<'a,Repr>: Future<Output = Self::LineStream<'a, Repr>> where Self: 'a;
28 fn line_stream<'a,Repr>(&'a self) -> Self::LineStreamFut<'a,Repr>;
34 type LineStream<'a, Repr> = impl Stream<Item = Repr>;
36 type LineStreamFut<'a, Repr> = impl Future<Output = Self::LineStream<'a, Repr>> ;
38 fn line_stream<'a, Repr>(&'a self) -> Self::LineStreamFut<'a, Repr> {