File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ #![ crate_name = "foo" ]
2
+
3
+ // @has 'foo/struct.S1.html'
4
+ // @count - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]/p' \
5
+ // 1
6
+ // @has - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]/p[1]' \
7
+ // 'Hello world! Goodbye! Hello again!'
8
+
9
+ #[ doc = "Hello world!\n \n " ]
10
+ /// Goodbye!
11
+ #[ doc = " Hello again!\n " ]
12
+ pub struct S1 ;
13
+
14
+ // @has 'foo/struct.S2.html'
15
+ // @count - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]/p' \
16
+ // 2
17
+ // @has - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]/p[1]' \
18
+ // 'Hello world!'
19
+ // @has - '//details[@class="rustdoc-toggle top-doc"]/div[@class="docblock"]/p[2]' \
20
+ // 'Goodbye! Hello again!'
21
+
22
+ /// Hello world!
23
+ ///
24
+ #[ doc = "Goodbye!" ]
25
+ /// Hello again!
26
+ pub struct S2 ;
You can’t perform that action at this time.
0 commit comments