1 // Regression test for issue #68368
2 // Ensures that we don't ICE when emitting an error
3 // for a non-defining use when lifetimes are involved
5 #![feature(type_alias_impl_trait)]
7 type Alias<'a, U> = impl Trait<U>;
9 fn f<'a>() -> Alias<'a, ()> {}
10 //~^ ERROR non-defining opaque type use in defining scope
14 impl Trait<()> for () {}