diff options
Diffstat (limited to 'tests/ui/structs-enums/struct-rec/issue-84611.rs')
-rw-r--r-- | tests/ui/structs-enums/struct-rec/issue-84611.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/structs-enums/struct-rec/issue-84611.rs b/tests/ui/structs-enums/struct-rec/issue-84611.rs new file mode 100644 index 000000000..4c356af3e --- /dev/null +++ b/tests/ui/structs-enums/struct-rec/issue-84611.rs @@ -0,0 +1,11 @@ +struct Foo<T> { +//~^ ERROR recursive type `Foo` has infinite size + x: Foo<[T; 1]>, + y: T, +} + +struct Bar { + x: Foo<Bar>, +} + +fn main() {} |