1 // Tests that we don't allow unconstrained lifetime parameters in impls when
2 // the lifetime is used in an associated opaque type.
4 #![feature(type_alias_impl_trait)]
8 fn unwrap_items(self) -> Self::Iter;
15 impl<'a> MyTrait<'a> for MyStruct {}
17 impl<'a, I> UnwrapItemsExt for I {
18 //~^ ERROR the lifetime parameter `'a` is not constrained
19 type Iter = impl MyTrait<'a>;
21 fn unwrap_items(self) -> Self::Iter {