diff options
Diffstat (limited to 'src/test/ui/infinite/infinite-struct.rs')
-rw-r--r-- | src/test/ui/infinite/infinite-struct.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/infinite/infinite-struct.rs b/src/test/ui/infinite/infinite-struct.rs deleted file mode 100644 index f08e10f6b..000000000 --- a/src/test/ui/infinite/infinite-struct.rs +++ /dev/null @@ -1,16 +0,0 @@ -struct Take(Take); -//~^ ERROR has infinite size - -// check that we don't hang trying to find the tail of a recursive struct (#79437) -fn foo() -> Take { - Take(loop {}) -} - -// mutually infinite structs -struct Foo { //~ ERROR has infinite size - x: Bar<Foo>, -} - -struct Bar<T>([T; 1]); - -fn main() {} |