about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorUlrik Sverdrup <root@localhost>2015-05-09 00:16:20 +0200
committerUlrik Sverdrup <root@localhost>2015-05-09 12:20:45 +0200
commitc46f3ff12b0a0b9c55df89eeb92603e9e488b2a7 (patch)
tree184e81aab23f30b218fab82e87652d2656a088f6 /src/test/rustdoc
parentff4e06104903c8cb03600739fa51afb905188b18 (diff)
downloadrust-c46f3ff12b0a0b9c55df89eeb92603e9e488b2a7.tar.gz
rust-c46f3ff12b0a0b9c55df89eeb92603e9e488b2a7.zip
rustdoc: Add Associated Constants section
Section only visible if there are assoc. consts. present.
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/assoc-consts.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/rustdoc/assoc-consts.rs b/src/test/rustdoc/assoc-consts.rs
index cd8d7ec16dc..20d4c744414 100644
--- a/src/test/rustdoc/assoc-consts.rs
+++ b/src/test/rustdoc/assoc-consts.rs
@@ -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;
 }