1 // Regression test for #57188
5 #![feature(type_alias_impl_trait)]
12 type T: Iterator<Item = Baz<'a>> + 'a;
13 fn foo(source: &'a str) -> Self::T;
17 impl<'a> Foo<'a> for Bar {
18 type T = impl Iterator<Item = Baz<'a>> + 'a;
19 fn foo(source: &'a str) -> Self::T {
20 std::iter::once(Baz { source })