Skip to content

Commit 19f30b7

Browse files
Add test for tuple struct documentation fields
1 parent ec76b6e commit 19f30b7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#![crate_name = "foo"]
2+
3+
// @has foo/struct.Foo.html
4+
// @has - '//h2[@id="fields"]' 'Tuple Fields'
5+
// @has - '//h3[@class="sidebar-title"]/a[@href="#fields"]' 'Tuple Fields'
6+
// @has - '//*[@id="structfield.0"]' '0: u32'
7+
// @has - '//*[@id="main"]/div[@class="docblock"]' 'hello'
8+
// @!has - '//*[@id="structfield.1"]'
9+
// @has - '//*[@id="structfield.2"]' '2: char'
10+
// @has - '//*[@id="structfield.3"]' '3: i8'
11+
// @has - '//*[@id="main"]/div[@class="docblock"]' 'not hello'
12+
pub struct Foo(
13+
/// hello
14+
pub u32,
15+
char,
16+
pub char,
17+
/// not hello
18+
pub i8,
19+
);

0 commit comments

Comments
 (0)