From 6287c94fa131208111a26886d1aca81183e9eba0 Mon Sep 17 00:00:00 2001 From: Adrian Taylor Date: Wed, 22 May 2024 15:58:00 +0000 Subject: [PATCH] Adjust crash bug to still reproduce. This test reproduces a rustc ICE. Unfortunately, the changes to lifetime elision mask the original ICE bug by making this function signature illegal. However, by simplifying the signature we can regain the original ICE. --- tests/crashes/122903-1.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/crashes/122903-1.rs b/tests/crashes/122903-1.rs index 9323c435851..0953962ed9e 100644 --- a/tests/crashes/122903-1.rs +++ b/tests/crashes/122903-1.rs @@ -1,7 +1,7 @@ //@ known-bug: #122903 impl Struct { - async fn box_box_ref_Struct( - self: Box>)>>, + fn box_box_ref_Struct( + self: impl FnMut(Box), ) -> &u32 { f }