From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/consts/promote_const_let.rs | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 src/test/ui/consts/promote_const_let.rs (limited to 'src/test/ui/consts/promote_const_let.rs') diff --git a/src/test/ui/consts/promote_const_let.rs b/src/test/ui/consts/promote_const_let.rs deleted file mode 100644 index 51a0fec2e..000000000 --- a/src/test/ui/consts/promote_const_let.rs +++ /dev/null @@ -1,10 +0,0 @@ -fn main() { - let x: &'static u32 = { - let y = 42; - &y //~ ERROR does not live long enough - }; - let x: &'static u32 = &{ //~ ERROR temporary value dropped while borrowed - let y = 42; - y - }; -} -- cgit v1.2.3