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 --- src/test/ui/anonymous-higher-ranked-lifetime.rs | 30 ------------------------- 1 file changed, 30 deletions(-) delete mode 100644 src/test/ui/anonymous-higher-ranked-lifetime.rs (limited to 'src/test/ui/anonymous-higher-ranked-lifetime.rs') diff --git a/src/test/ui/anonymous-higher-ranked-lifetime.rs b/src/test/ui/anonymous-higher-ranked-lifetime.rs deleted file mode 100644 index 898fe22fa..000000000 --- a/src/test/ui/anonymous-higher-ranked-lifetime.rs +++ /dev/null @@ -1,30 +0,0 @@ -fn main() { - f1(|_: (), _: ()| {}); //~ ERROR type mismatch - f2(|_: (), _: ()| {}); //~ ERROR type mismatch - f3(|_: (), _: ()| {}); //~ ERROR type mismatch - f4(|_: (), _: ()| {}); //~ ERROR type mismatch - f5(|_: (), _: ()| {}); //~ ERROR type mismatch - g1(|_: (), _: ()| {}); //~ ERROR type mismatch - g2(|_: (), _: ()| {}); //~ ERROR type mismatch - g3(|_: (), _: ()| {}); //~ ERROR type mismatch - g4(|_: (), _: ()| {}); //~ ERROR type mismatch - h1(|_: (), _: (), _: (), _: ()| {}); //~ ERROR type mismatch - h2(|_: (), _: (), _: (), _: ()| {}); //~ ERROR type mismatch -} - -// Basic -fn f1(_: F) where F: Fn(&(), &()) {} -fn f2(_: F) where F: for<'a> Fn(&'a (), &()) {} -fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {} -fn f4(_: F) where F: for<'r> Fn(&(), &'r ()) {} -fn f5(_: F) where F: for<'r> Fn(&'r (), &'r ()) {} - -// Nested -fn g1(_: F) where F: Fn(&(), Box) {} -fn g2(_: F) where F: Fn(&(), fn(&())) {} -fn g3(_: F) where F: for<'s> Fn(&'s (), Box) {} -fn g4(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {} - -// Mixed -fn h1(_: F) where F: Fn(&(), Box, &(), fn(&(), &())) {} -fn h2(_: F) where F: for<'t0> Fn(&(), Box, &'t0 (), fn(&(), &())) {} -- cgit v1.2.3