3 // This should pass, but seems to run into a TAIT issue.
5 #![feature(generic_associated_types)]
6 #![feature(type_alias_impl_trait)]
16 trait Yay<AdditionalValue> {
17 type InnerStream<'s>: Stream<Item = i32> + 's;
18 fn foo<'s>() -> Self::InnerStream<'s>;
21 impl<'a> Yay<&'a ()> for () {
22 type InnerStream<'s> = impl Stream<Item = i32> + 's;
24 fn foo<'s>() -> Self::InnerStream<'s> { todo!() }