about summary refs log tree commit diff
path: root/tests/ui/traits/solver-cycles/129541-recursive-struct-and-array-impl.rs
blob: defb39aae06d47c21cf33fce6145e8b8c7cd7b9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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() {}