You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like an AnonConst is allowed to contain arbitrary expressions (as long as no const or type parameters are used), which means that new types can be defined.
I'm not certain whether this should be allowed or not. However, I haven't seen this discussed before, so I thought it was worth bringing up.
The text was updated successfully, but these errors were encountered:
Feels to me like this, at the very least, shouldn't be min_const_generics.
(I'd personally be happy to block it from const_generics too, but there are consistency arguments that's it's not unreasonable to allow types in there, since they're allowed in other blocks.)
I recently discovered that the following code compiles:
It looks like an
AnonConst
is allowed to contain arbitrary expressions (as long as no const or type parameters are used), which means that new types can be defined.I'm not certain whether this should be allowed or not. However, I haven't seen this discussed before, so I thought it was worth bringing up.
The text was updated successfully, but these errors were encountered: