ICE in debug when matching two constants to the same reference #105173
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
When one creates two constants to the same reference and matches both, a
cargo +nightly build
debug compile runs into an ICE.With
cargo +nightly build --release
this builds just fine.One can also use two match arms for a more reasonable usage:
This happens in both stable and nightly.
I'm not sure how to trigger this with
rustc
. A simple cargo project created withcargo new
works though.Meta
rustc --version --verbose
:cargo +nightly --version
:Error output
Backtrace
Backtrace Full
The text was updated successfully, but these errors were encountered: