Recent change causes assertion failure in type checker #22781
Labels
A-lifetimes
Area: Lifetimes / regions
A-type-system
Area: Type system
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
First, sorry that I can't pinpoint which change caused this ICE to pop up - but the best guess I can give is somewhere in the last 2 weeks - I just updated to a recent nightly over the weekend. This is still reproducible on master.
The following code produces an ICE:
The error message is:
Obviously the
unimplemented!()
code is just a placeholder, and the same issue occurs when the match statement is used as might be expected to get a mutable reference from an entry.This is the smallest test case I have come up with. It seems to depend on the match statement existing with at least two arms and its result being used in some way, as well as the higher-ranked lifetime bound in the closure type
F
.This bug is really hindering a project I am working on.
The text was updated successfully, but these errors were encountered: