2023-02-16 21:59:10 +00:00
|
|
|
// 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() {
|
2025-04-05 19:19:56 +03:00
|
|
|
Foo::<()>::f() //~ ERROR trait bounds were not satisfied
|
2023-02-16 21:59:10 +00:00
|
|
|
}
|