ICE: expected usize, got N/#0: usize
#123906
Labels
A-const-generics
Area: const generics (parameters and arguments)
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
(reduced)
Original Code
Meta
rustc --version --verbose
:Command
rustc
Error output
Backtrace
Note
ICE-location:
compiler/rustc_middle/src/ty/consts.rs, Line-437, fn eval_target_usize
rust/compiler/rustc_middle/src/ty/consts.rs
Lines 433 to 438 in 0bf471f
Closed Issue ICE:
expected usize, got UnevaluatedConst
#116186 has identical ICE-location,compiler/rustc_middle/src/ty/consts.rs, Line-375, fn eval_target_usize
The text was updated successfully, but these errors were encountered: