]>
Commit | Line | Data |
---|---|---|
dfeec247 XL |
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 | |
4 | ||
6a06907d XL |
5 | // revisions: min_tait full_tait |
6 | #![feature(min_type_alias_impl_trait)] | |
7 | #![cfg_attr(full_tait, feature(type_alias_impl_trait))] | |
8 | //[full_tait]~^ WARN incomplete | |
dfeec247 | 9 | trait Trait<T> {} |
ba9703b0 | 10 | type Alias<'a, U> = impl Trait<U>; |
dfeec247 | 11 | fn f<'a>() -> Alias<'a, ()> {} |
ba9703b0 | 12 | //~^ ERROR non-defining opaque type use in defining scope |
dfeec247 XL |
13 | |
14 | fn main() {} | |
15 | ||
16 | impl Trait<()> for () {} |