Out of bound index cast causes ICE #55772
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
It seems like any in-place cast to
usize
that is out of bounds is causing an ICE. rustc fails on both current stable and nightly. not sure if #52432 is related or not.minimal reproduction:
playground link: https://play.rust-lang.org/?version=stable&mode=debug&edition=2015&gist=53b64af01f09b42643ff9283679016ca
full backtrace:
The text was updated successfully, but these errors were encountered: