rust/tests/ui/traits/solver-cycles/129541-recursive-struct-and-array-impl.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
307 B
Rust
Raw Normal View History

// Regression test for #129541
//@ check-pass
trait Bound {}
trait Normalize {
type Assoc;
}
impl<T: Bound> Normalize for T {
type Assoc = T;
}
impl<T: Bound> Normalize for [T] {
type Assoc = T;
}
impl Bound for Hello {}
struct Hello {
a: <[Hello] as Normalize>::Assoc,
}
fn main() {}