Closed traviscross closed 3 months ago
We should probably also emit more specific errors -- it is not wrong for "constant expression [to depend] on a generic parameter", it's just wrong in this specific case where that expression occurs in a type.
Also, strange that the two examples above lead to different errors that say the same thing in different words -- they must be caught by different checks, somehow?
As raised here:
...related to the language:
We should document what these restrictions are precisely.
Here's an example of what doesn't work:
Similarly:
cc @RalfJung @ehuss @BoxyUwU