diff options
| author | Adrian Taylor <adetaylor@chromium.org> | 2024-05-22 15:58:00 +0000 |
|---|---|---|
| committer | Adrian Taylor <adetaylor@chromium.org> | 2024-05-31 11:04:32 +0000 |
| commit | 6287c94fa131208111a26886d1aca81183e9eba0 (patch) | |
| tree | 4626a6c8e93098153125c26b4195f1122811e4bf | |
| parent | e62599f8569509e5ebbea407d81f77fd0a9ca01b (diff) | |
| download | rust-6287c94fa131208111a26886d1aca81183e9eba0.tar.gz rust-6287c94fa131208111a26886d1aca81183e9eba0.zip | |
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.
| -rw-r--r-- | tests/crashes/122903-1.rs | 4 |
1 files 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<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 } |
