3 #![feature(type_alias_impl_trait)]
13 trait Yay<AdditionalValue> {
14 type InnerStream<'s>: Stream<Item = i32> + 's;
15 fn foo<'s>() -> Self::InnerStream<'s>;
18 impl<'a> Yay<&'a ()> for () {
19 type InnerStream<'s> = impl Stream<Item = i32> + 's;
20 //^ ERROR does not fulfill the required lifetime
21 fn foo<'s>() -> Self::InnerStream<'s> { () }