rust/tests/ui/structs-enums/struct-rec/issue-74224.rs

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

12 lines
134 B
Rust
Raw Normal View History

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