File tree Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Expand file tree Collapse file tree 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 @@ -57,16 +57,26 @@ pub trait AnotherOne {
57
57
fn func3 ( ) ;
58
58
}
59
59
60
+ /// ```compile_fail
61
+ /// whatever
62
+ /// ```
63
+ ///
60
64
/// Check for "i" signs in lists!
61
65
///
62
66
/// 1. elem 1
63
- /// 2.test 1
64
- /// ```compile_fail
65
- /// fn foo() {}
66
- /// ```
67
+ /// 2. test 1
68
+ /// ```compile_fail
69
+ /// fn foo() {}
70
+ /// ```
67
71
/// 3. elem 3
68
72
/// 4. ```ignore (it's a test)
69
73
/// fn foo() {}
70
74
/// ```
71
75
/// 5. elem 5
76
+ ///
77
+ /// Final one:
78
+ ///
79
+ /// ```ignore (still a test)
80
+ /// let x = 12;
81
+ /// ```
72
82
pub fn check_list_code_block ( ) { }
You can’t perform that action at this time.
0 commit comments