If you want to use const expressions (i.e. call is_zero()
with the I
const) then you need to wrap it in curly braces so it doesn't get parsed as a type. Evaluating const expressions in generics is still very incomplete, so your best bet is to check the PR or RFC associated with generic_const_exprs
.
1 Like