ICE: Complex control flow is forbidden in a const context #69615
Labels
C-bug
Category: This is a bug.
F-const_trait_impl
`#![feature(const_trait_impl)]`
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.
I tried this code:
I expected to see this happen: Report an error in compilation which tells me that I need
#![feature(const_if_match)]
. If that feature is enabled, this ICE DOESNT happen.Instead, this happened: This ICE
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: