Derived PartialEq cannot be used in a const
function
#77695
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
F-const_trait_impl
`#![feature(const_trait_impl)]`
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
The derived PartialEq implementation cannot be used in a
const
context.The code below gives error
E0015
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: