Unclear error message when destructuring in const fn #29525
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Errors with E0022 "arguments of constant functions can only be immutable by-value bindings". The detailed explanation for E0022 is:
This does not seem to be the correct error message.
The text was updated successfully, but these errors were encountered: