ICE: AFIT with shadowed lifetime parameter: Cannot convert to region vid #134780
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
rustc-ice-2024-12-26T04_38_07-1636589.txt
I have a rustc crash for you.
You will notice that I reference a concrete type that is not defined. I just did that to make it more minimal; I still get the crash even if I define it, ie. with
struct Something { }
. Similarly, this still works (ie. crashes) if I define amain()
.With the benefit of hindsight and after reducing it, I understand why this input is not valid Rust, and do not need help debugging the actual thing I was trying to do. In fact, it's quite impressive that the compiler gets so far as to show meaningful error messages before crashing. I just figured you'd, you know, want to know about the crash.
Good luck!
Code
Meta
rustc --version --verbose
:Error output
The above output was with RUST_BACKTRACE=1, but I get almost the same thing without it; I'm unable to identify which portion of this is the "backtrace" and which is the "error output" so I have put it all together, above. Hope that's okay.
The text was updated successfully, but these errors were encountered: