// Regression test for #108132: do not ICE upon unmet trait alias constraint in generic impl #![feature(trait_alias)] trait IteratorAlias = Iterator; struct Foo(I); impl Foo { fn f() {} } fn main() { Foo::<()>::f() //~ trait bounds were not satisfied }