From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/function-pointer/unsized-ret.rs | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/test/ui/function-pointer/unsized-ret.rs (limited to 'src/test/ui/function-pointer/unsized-ret.rs') diff --git a/src/test/ui/function-pointer/unsized-ret.rs b/src/test/ui/function-pointer/unsized-ret.rs deleted file mode 100644 index 79009c5cb..000000000 --- a/src/test/ui/function-pointer/unsized-ret.rs +++ /dev/null @@ -1,15 +0,0 @@ -#![feature(fn_traits)] -#![feature(unboxed_closures)] -#![feature(tuple_trait)] - -fn foo, T:std::marker::Tuple>(f: Option, t: T) { - let y = (f.unwrap()).call(t); -} - -fn main() { - foo:: str, _>(None, ()); - //~^ ERROR the size for values of type `str` cannot be known at compilation time - - foo:: fn(&'a ()) -> (dyn std::fmt::Display + 'a), _>(None, (&(),)); - //~^ ERROR the size for values of type `(dyn std::fmt::Display + 'a)` cannot be known at compilation time -} -- cgit v1.2.3