ICE: "cannot convert ReErased to a region vid" after adding unused variable #104247
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.
Code
I didn't yet come up with a minimal example. So far for reproduction
elfo
crate is needed (which is quite big bruh). Here's the repo with the code: https://github.com/l4l/ice-bwck-unused-todoMeta
Tried on stable 1.64.0, 1.65.0 and nightly 1.66.0 (470e518 2022-09-27).
Error output
Shortened backtrace
Triggered this after adding
let x: <ty> = todo()
, if literal is set instead there's no ICE.Looks similar to #96304 or #78174 but this one doesn't require nightly features.
The text was updated successfully, but these errors were encountered: