ICE: src/librustc_middle/ty/subst.rs:568:17: const parameter N/#0
(Const { ty: usize, val: Param(N/#0) }/0) out of range when substituting substs=[]
#77846
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
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=a2ca1d2ba3c49f2540baebfb8ac167a0
Similar to #75913 this ICE goes away when adding
#![feature(const_generics)]
.Meta
Same error on beta and nightly.
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: