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/issues/issue-27240.rs | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/test/ui/issues/issue-27240.rs (limited to 'src/test/ui/issues/issue-27240.rs') diff --git a/src/test/ui/issues/issue-27240.rs b/src/test/ui/issues/issue-27240.rs deleted file mode 100644 index eaf254f33..000000000 --- a/src/test/ui/issues/issue-27240.rs +++ /dev/null @@ -1,27 +0,0 @@ -// run-pass -#![allow(unused_assignments)] -#![allow(unused_variables)] -use std::fmt; -struct NoisyDrop(#[allow(unused_tuple_struct_fields)] T); -impl Drop for NoisyDrop { - fn drop(&mut self) {} -} - -struct Bar(#[allow(unused_tuple_struct_fields)] [*const NoisyDrop; 2]); - -fn fine() { - let (u,b); - u = vec![43]; - b = Bar([&NoisyDrop(&u), &NoisyDrop(&u)]); -} - -#[allow(unused_tuple_struct_fields)] -struct Bar2(*const NoisyDrop, *const NoisyDrop); - -fn lolwut() { - let (u,v); - u = vec![43]; - v = Bar2(&NoisyDrop(&u), &NoisyDrop(&u)); -} - -fn main() { fine(); lolwut() } -- cgit v1.2.3