File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/librustdoc/html/render Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1343,7 +1343,6 @@ impl AllTypes {
1343
1343
</a>\
1344
1344
</span>
1345
1345
</span>
1346
- <span class=\" in-band\" >List of all items</span>\
1347
1346
</h1>" ,
1348
1347
) ;
1349
1348
// Note: print_entries does not escape the title, because we know the current set of titles
Original file line number Diff line number Diff line change @@ -38,3 +38,14 @@ fn test_name_sorting() {
38
38
sorted. sort_by ( |& l, r| compare_names ( l, r) ) ;
39
39
assert_eq ! ( names, sorted) ;
40
40
}
41
+
42
+ #[ test]
43
+ fn test_all_types_prints_header_once ( ) {
44
+ // Regression test for #82477
45
+ let all_types = AllTypes :: new ( ) ;
46
+
47
+ let mut buffer = Buffer :: new ( ) ;
48
+ all_types. print ( & mut buffer) ;
49
+
50
+ assert_eq ! ( 1 , buffer. into_inner( ) . matches( "List of all items" ) . count( ) ) ;
51
+ }
You can’t perform that action at this time.
0 commit comments