ICE: cannot relate bound region: ReLateBound #82612
Labels
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
While writing a SparseArray impl, I forgot a return on
value.get_or_insert_with(func)
. This should be an error, but I got an ice instead. This fails with the expected on stable.playground: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=a3776450ab79249a20b477f8365c88df
(Note that switching to stable resolves the ICE)
Meta
rustc --version --verbose
:Error output
The text was updated successfully, but these errors were encountered: