Generic bounds don't seem to be used in consteval #50308
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code fails to compile
The error is:
which makes no sense since there is an implicit T: Sized bound from the struct definition. Even with an explicit bound, the error occurs.
Combined with associated consts, this leads to weird error messages:
The text was updated successfully, but these errors were encountered: