File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ goto: "file://" + |DOC_PATH| + "/test_docs/trait_members/struct.HasTrait.html#impl-TraitMembers-for-HasTrait"
2+
3+ assert-count: ("#trait-implementations-list > .rustdoc-toggle", 1)
4+
5+ compare-elements-css: (
6+ // compare margin on type with margin on method
7+ "#trait-implementations-list .impl-items > .rustdoc-toggle:nth-child(1) > summary",
8+ "#trait-implementations-list .impl-items > .rustdoc-toggle:nth-child(2) > summary",
9+ ["margin"]
10+ )
11+
12+ compare-elements-css: (
13+ // compare margin on type with margin on method
14+ "#trait-implementations-list .impl-items > .rustdoc-toggle:nth-child(1)",
15+ "#trait-implementations-list .impl-items > .rustdoc-toggle:nth-child(2)",
16+ ["margin"]
17+ )
Original file line number Diff line number Diff line change @@ -416,3 +416,20 @@ pub trait TraitWithoutGenerics {
416416
417417 fn foo ( ) ;
418418}
419+
420+ pub mod trait_members {
421+ pub trait TraitMembers {
422+ /// Some type
423+ type Type ;
424+ /// Some function
425+ fn function ( ) ;
426+ /// Some other function
427+ fn function2 ( ) ;
428+ }
429+ pub struct HasTrait ;
430+ impl TraitMembers for HasTrait {
431+ type Type = u8 ;
432+ fn function ( ) { }
433+ fn function2 ( ) { }
434+ }
435+ }
You can’t perform that action at this time.
0 commit comments