about summary refs log tree commit diff
path: root/tests/rustdoc
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-09-08 14:59:54 -0700
committerMichael Howell <michael@notriddle.com>2023-09-08 14:59:54 -0700
commitd882b2118e505d86a9f770ef862fb1ee6e91ced8 (patch)
tree412c6d659e499597aafa0cb4445561de943af27b /tests/rustdoc
parentffc48e3eda36e288f76b4022d72d94321887ebf5 (diff)
rustdoc: add impl items from aliased type into sidebar
Diffstat (limited to 'tests/rustdoc')
-rw-r--r--tests/rustdoc/issue-32077-type-alias-impls.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/rustdoc/issue-32077-type-alias-impls.rs b/tests/rustdoc/issue-32077-type-alias-impls.rs
index 555d0579bee..26778c67c24 100644
--- a/tests/rustdoc/issue-32077-type-alias-impls.rs
+++ b/tests/rustdoc/issue-32077-type-alias-impls.rs
@@ -29,6 +29,11 @@ impl Bar for GenericStruct<u32> {}
 // @!has - '//h3' 'impl Bar for GenericStruct<u32> {}'
 // Same goes for the `Deref` impl.
 // @!has - '//h2' 'Methods from Deref<Target = u32>'
+// @count - '//nav[@class="sidebar"]//a' 'on_alias' 1
+// @count - '//nav[@class="sidebar"]//a' 'on_gen' 1
+// @count - '//nav[@class="sidebar"]//a' 'Foo' 1
+// @!has - '//nav[@class="sidebar"]//a' 'Bar'
+// @!has - '//nav[@class="sidebar"]//a' 'on_u32'
 pub type TypedefStruct = GenericStruct<u8>;
 
 impl TypedefStruct {