File tree 3 files changed +24
-5
lines changed
3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -1353,7 +1353,7 @@ h4 > .notable-traits {
1353
1353
to prevent an overlay between the "collapse toggle" and the information tooltip.
1354
1354
However, it's not needed with smaller screen width because the doc/code block is always put
1355
1355
"one line" below. */
1356
- .information : first-child > .tooltip {
1356
+ .docblock > . information : first-child > .tooltip {
1357
1357
margin-top : 16px ;
1358
1358
}
1359
1359
}
Original file line number Diff line number Diff line change
1
+ goto: file://|DOC_PATH|/index.html
2
+ goto: ./fn.check_list_code_block.html
3
+ // If the codeblock is the first element of the docblock, the information tooltip must have
4
+ // have some top margin to avoid going over the toggle (the "[+]").
5
+ assert: (".docblock > .information > .compile_fail", { "margin-top": "16px" })
6
+ // Checks that the other codeblocks don't have this top margin.
7
+ assert: ("ol > li > .information > .compile_fail", { "margin-top": "0px" })
8
+ assert: ("ol > li > .information > .ignore", { "margin-top": "0px" })
9
+ assert: (".docblock > .information > .ignore", { "margin-top": "0px" })
Original file line number Diff line number Diff line change @@ -62,16 +62,26 @@ pub trait AnotherOne {
62
62
fn hello ( ) ;
63
63
}
64
64
65
+ /// ```compile_fail
66
+ /// whatever
67
+ /// ```
68
+ ///
65
69
/// Check for "i" signs in lists!
66
70
///
67
71
/// 1. elem 1
68
- /// 2.test 1
69
- /// ```compile_fail
70
- /// fn foo() {}
71
- /// ```
72
+ /// 2. test 1
73
+ /// ```compile_fail
74
+ /// fn foo() {}
75
+ /// ```
72
76
/// 3. elem 3
73
77
/// 4. ```ignore (it's a test)
74
78
/// fn foo() {}
75
79
/// ```
76
80
/// 5. elem 5
81
+ ///
82
+ /// Final one:
83
+ ///
84
+ /// ```ignore (still a test)
85
+ /// let x = 12;
86
+ /// ```
77
87
pub fn check_list_code_block ( ) { }
You can’t perform that action at this time.
0 commit comments