We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d10703c commit 57f7501Copy full SHA for 57f7501
src/test/rustdoc-gui/item-info-width.goml
@@ -0,0 +1,7 @@
1
+// This test ensures that the item information don't take 100% of the width if unnecessary.
2
+goto: file://|DOC_PATH|/lib2/struct.Foo.html
3
+// We set a fixed size so there is no chance of "random" resize.
4
+size: (1100, 800)
5
+// We check that ".item-info" is bigger than its content.
6
+assert-css: (".item-info", {"width": "807px"})
7
+assert-css: (".item-info .stab", {"width": "343px"})
src/test/rustdoc-gui/src/lib2/lib.rs
@@ -1,5 +1,7 @@
// ignore-tidy-linelength
+#![feature(doc_cfg)]
+
pub mod module {
pub mod sub_module {
pub mod sub_sub_module {
@@ -14,6 +16,7 @@ pub fn foobar() {}
14
16
15
17
pub type Alias = u32;
18
19
+#[doc(cfg(feature = "foo-method"))]
20
pub struct Foo {
21
pub x: Alias,
22
}
0 commit comments