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.
This commit is contained in:
Adrian Taylor 2024-05-22 15:58:00 +00:00
parent e62599f856
commit 6287c94fa1

View File

@ -1,7 +1,7 @@
//@ known-bug: #122903
impl Struct {
async fn box_box_ref_Struct(
self: Box<Box<Self, impl FnMut(&mut Box<Box<Self, impl FnMut(&mut Self)>>)>>,
fn box_box_ref_Struct(
self: impl FnMut(Box<impl FnMut(&mut Self)>),
) -> &u32 {
f
}