summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs-enums/struct-rec/issue-74224.rs
blob: f3b72c5df7f70b2617ddbe530bf235ebf0204fe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
struct A<T> {
//~^ ERROR recursive type `A` has infinite size
    x: T,
    y: A<A<T>>,
}

struct B {
    z: A<usize>
}

fn main() {}