Error reporting bug with const_generics
and const_evaluatable_checked
#82959
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
Issue three of three I'll be filing tonight.
This is the code that causes the bug:
I don't remember why I tried this, but I did. And the error messages I got on it were wild:
Now you're probably thinking to yourself, "Hey Auro, isn't that exactly the same code as in #82956? Oh, and #82957? And isn't it silly to pull the same dumb gag twice?" To answer the last question: yes, definitely. To answer the other two: no, not quite. Check out the constraints on the
OrdesDec
impl:[T; N - 1]: Sized
has been swapped out forConstCheck<{N - 1 != 0}>: True
. I don't even know what's going on in those error messages, if I'm honest. They confuse me.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: