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() {}