Closed
Description
When writing associated constants in a struct's implementation, those constants appear under the Methods
section. Here's a minimal example:
struct Struc;
impl Struc {
const S: u64 = 0;
}
$ cargo doc
For traits though, they appear under Associated Constants
:
trait Tr {
const S: u64 = 0;
}
There should also be an Associated Constants
section for struct documentation.