Skip to content

Commit 755835e

Browse files
Add test for the presence of "Aliased type" title in the sidebar
1 parent 7468af8 commit 755835e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/rustdoc/issue-32077-type-alias-impls.rs

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ impl<T> Foo for GenericStruct<T> {}
1919
impl Bar for GenericStruct<u32> {}
2020

2121
// @has 'foo/type.TypedefStruct.html'
22+
// We check that "Aliased type" is also present as a title in the sidebar.
23+
// @has - '//*[@class="sidebar-elems"]//h3/a[@href="#aliased-type"]' 'Aliased type'
2224
// We check that we have the implementation of the type alias itself.
2325
// @has - '//*[@id="impl-TypedefStruct"]/h3' 'impl TypedefStruct'
2426
// @has - '//*[@id="method.on_alias"]/h4' 'pub fn on_alias()'

0 commit comments

Comments
 (0)