rust/tests/ui/structs-enums/struct-rec/issue-74224.rs
2023-01-11 09:32:08 +00:00

12 lines
134 B
Rust

struct A<T> {
//~^ ERROR recursive type `A` has infinite size
x: T,
y: A<A<T>>,
}
struct B {
z: A<usize>
}
fn main() {}