With the latest 1.79 release, it got me thinking - shouldn't const assertions be in rustdoc pages / function signatures? They seem to serve as extensions of the type system, and users need to know about them.
1 Like
In lieu of any sort of automated documentation, I've simply listed them under the function's "Errors" section in the documentation. Like something to the effect of: "doing X is a compile-time error", which is implemented using a const assertion.
1 Like
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.