1 // Tests that we still detect defining usages when
2 // lifetimes are used in an associated opaque type
5 #![feature(type_alias_impl_trait)]
7 trait UnwrapItemsExt<'a> {
9 fn unwrap_items(self) -> Self::Iter;
16 impl<'a> MyTrait<'a> for MyStruct {}
18 impl<'a, I> UnwrapItemsExt<'a> for I {
19 type Iter = impl MyTrait<'a>;
21 fn unwrap_items(self) -> Self::Iter {