File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change
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"})
Original file line number Diff line number Diff line change 1
1
// ignore-tidy-linelength
2
2
3
+ #![ feature( doc_cfg) ]
4
+
3
5
pub mod module {
4
6
pub mod sub_module {
5
7
pub mod sub_sub_module {
@@ -14,6 +16,7 @@ pub fn foobar() {}
14
16
15
17
pub type Alias = u32 ;
16
18
19
+ #[ doc( cfg( feature = "foo-method" ) ) ]
17
20
pub struct Foo {
18
21
pub x : Alias ,
19
22
}
You can’t perform that action at this time.
0 commit comments