rustc is unable to evaluate a singular conditional pathway predicated on the length of an array literal #119908
Labels
A-const-prop
Area: Constant Propagation
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
L-unconditional_panic
Lint: unconditional_panic
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
rustc is unable to evaluate a singular conditional pathway predicated on the length of an array literal.
This behavior prevents an obviously correct code to compile
(conditional should be eliminated altogether, instead of throwing a compile error in this case):
thanks @compiler-errors 👍🏼
Reproducible example playground.
Meta
rustc --version --verbose
:(
stable
,beta
&nightly
are all affected seemingly independent of the platform or edition, incl.2024
)Error output
The text was updated successfully, but these errors were encountered: