We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3be69b1 commit d3f75ebCopy full SHA for d3f75eb
src/librustdoc/html/render/tests.rs
@@ -38,3 +38,14 @@ fn test_name_sorting() {
38
sorted.sort_by(|&l, r| compare_names(l, r));
39
assert_eq!(names, sorted);
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
+}
0 commit comments