rustdoc: Add Associated Constants section
Section only visible if there are assoc. consts. present.
This commit is contained in:
parent
ff4e061049
commit
c46f3ff12b
2 changed files with 12 additions and 0 deletions
|
|
@ -13,6 +13,7 @@
|
|||
pub trait Foo {
|
||||
// @has assoc_consts/trait.Foo.html '//*[@class="rust trait"]' \
|
||||
// 'const FOO: usize;'
|
||||
// @has - '//*[@id="associatedconstant.FOO"]' 'const FOO'
|
||||
const FOO: usize;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue