Unhelpful error message and cycles with const_evaluatable_checked
#84971
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
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.
Given the following code: playground link
Currently the compiler complains
This is problematic:
where
bound. The parser errors when put behindelems:
or before the final;
. Maybe I'm missing something obvious?: Sized
Possible related to #80976, #82934 and #82509 but additionally, the bound is required on the trait's own associated constant, not in an impl, a struct or construction related to the trait.
Note: I believe correct code would look like
but this leads to
The text was updated successfully, but these errors were encountered: