Closed
Description
It would be useful to be able to specify static expressions which must be evaluated to true or else compilation will fail. This can be particularly useful in checking assumptions that are baked into unsafe code, such as that the size of two structs is equal.
Relevant RFCs:
- RFC remove static_assert #1096 removed the older
#[static_assert]
attribute.