ICE assertion failed: matches!(self.def_kind(ct.def), DefKind :: AnonConst)
if fn has generic param
#112438
Labels
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
F-inline_const_pat
#![feature(inline_const_pat)]
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-incomplete-features
This issue requires the use of incomplete features.
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
interestingly the code compiles as soon as I remove
<const V: usize>
and just make it a boringfoo() {...}
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: