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