From a4b7ed7a42c716ab9f05e351f003d589124fd55d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:18:58 +0200 Subject: Adding upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- .../issue-38591-non-regular-dropck-recursion.rs | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/test/ui/recursion/issue-38591-non-regular-dropck-recursion.rs (limited to 'src/test/ui/recursion/issue-38591-non-regular-dropck-recursion.rs') diff --git a/src/test/ui/recursion/issue-38591-non-regular-dropck-recursion.rs b/src/test/ui/recursion/issue-38591-non-regular-dropck-recursion.rs deleted file mode 100644 index c9e93174e..000000000 --- a/src/test/ui/recursion/issue-38591-non-regular-dropck-recursion.rs +++ /dev/null @@ -1,16 +0,0 @@ -// `S` is infinitely recursing so it's not possible to generate a finite -// drop impl (ignoring polymorphization). -// -// Dropck should therefore detect that this is the case and eagerly error. - -struct S { - t: T, - s: Box>, -} - -fn f(x: S) {} //~ ERROR overflow while adding drop-check rules for S - -fn main() { - // Force instantiation. - f as fn(_); -} -- cgit v1.2.3