File tree 3 files changed +18
-0
lines changed
librustdoc/html/static/css
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -1872,6 +1872,7 @@ in storage.js
1872
1872
}
1873
1873
1874
1874
.variants > .docblock ,
1875
+ .implementors-toggle > .docblock ,
1875
1876
.impl-items > .rustdoc-toggle [open ]: not (: last-child ),
1876
1877
.methods > .rustdoc-toggle [open ]: not (: last-child ),
1877
1878
.implementors-toggle [open ]: not (: last-child ) {
Original file line number Diff line number Diff line change
1
+ // A docblock on an impl must have a margin to separate it from the contents.
2
+ goto: "file://" + |DOC_PATH| + "/test_docs/struct.TypeWithImplDoc.html"
3
+
4
+ // The text is about 24px tall, so if there's a margin, then their position will be >24px apart
5
+ compare-elements-position-near-false: (
6
+ "#implementations-list > .implementors-toggle > .docblock > p",
7
+ "#implementations-list > .implementors-toggle > .impl-items",
8
+ {"y": 24}
9
+ )
Original file line number Diff line number Diff line change @@ -442,3 +442,11 @@ pub mod trait_members {
442
442
fn function2 ( ) { }
443
443
}
444
444
}
445
+
446
+ pub struct TypeWithImplDoc ;
447
+
448
+ /// impl doc
449
+ impl TypeWithImplDoc {
450
+ /// fn doc
451
+ pub fn test_fn ( ) { }
452
+ }
You can’t perform that action at this time.
0 commit comments