Skip to content

Commit 6287c94

Browse files
committed
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.
1 parent e62599f commit 6287c94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: tests/crashes/122903-1.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ known-bug: #122903
22
impl Struct {
3-
async fn box_box_ref_Struct(
4-
self: Box<Box<Self, impl FnMut(&mut Box<Box<Self, impl FnMut(&mut Self)>>)>>,
3+
fn box_box_ref_Struct(
4+
self: impl FnMut(Box<impl FnMut(&mut Self)>),
55
) -> &u32 {
66
f
77
}

0 commit comments

Comments
 (0)