mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 18:21:15 +01:00
6287c94fa1
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.
9 lines
152 B
Rust
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
|
|
}
|
|
}
|