rust/tests/crashes/122903-1.rs
Adrian Taylor 6287c94fa1 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.
2024-05-31 11:04:32 +00:00

9 lines
152 B
Rust

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