File tree 2 files changed +5
-1
lines changed
librustdoc/html/static/js
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -888,7 +888,7 @@ function hideThemeButtonState() {
888
888
889
889
onEachLazy ( document . querySelectorAll ( ".rustdoc-toggle > summary:not(.hideme)" ) , function ( el ) {
890
890
el . addEventListener ( "click" , function ( e ) {
891
- if ( e . target . tagName != "SUMMARY" ) {
891
+ if ( e . target . tagName != "SUMMARY" && e . target . tagName != "A" ) {
892
892
e . preventDefault ( ) ;
893
893
}
894
894
} ) ;
Original file line number Diff line number Diff line change @@ -6,3 +6,7 @@ click: "h4.code-header" // This is the position of "pub" in "pub fn a_method"
6
6
assert-attribute: (".impl-items .rustdoc-toggle", {"open": ""})
7
7
click: ".impl-items .rustdoc-toggle summary::before" // This is the position of "[-]" next to that pub fn.
8
8
assert-attribute-false: (".impl-items .rustdoc-toggle", {"open": ""})
9
+
10
+ // Click the "Trait" part of "impl Trait" and verify it navigates.
11
+ click: "#impl-Trait h3 a:first-of-type"
12
+ assert-text: (".fqn .in-band", "Trait lib2::Trait")
You can’t perform that action at this time.
0 commit comments