Skip to content

Commit

Permalink
Adjust crash bug to still reproduce.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adetaylor committed May 31, 2024
1 parent e62599f commit 6287c94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/crashes/122903-1.rs
Original file line number Diff line number Diff line change
@@ -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
}
Expand Down

0 comments on commit 6287c94

Please sign in to comment.