ICE: where
clause with const evaluation on fn
crashes, but on impl
gives normal error
#82835
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
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.
One version crashes the compiler, the other version produces a normal error.
Note that commenting out the line in
main()
makes it compile just fine.Code
Meta
rustc --version --verbose
:Error output
Error with
where
on impl insteadThough I still feel like this should typecheck, at least in the future some day?
Backtrace (`FULL`)
The text was updated successfully, but these errors were encountered: