We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec76b6e commit 19f30b7Copy full SHA for 19f30b7
src/test/rustdoc/tuple-struct-fields-doc.rs
@@ -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