Extra type parameters make compiler panic calling Option::unwrap()
on None
#36708
Labels
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.
This works.
However, the code below doesn't because
div
has an extra parametric typeT
. But, the compiler doesn't emit proper error messages and saysthe compiler unexpectedly panicked. this is a bug.
.Error message
Meta
Backtrace
The text was updated successfully, but these errors were encountered: