about summary refs log tree commit diff
path: root/src/test/rustdoc/structfields.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc/structfields.rs')
-rw-r--r--src/test/rustdoc/structfields.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/rustdoc/structfields.rs b/src/test/rustdoc/structfields.rs
index c0bfe3ffe3c..75d9be856d7 100644
--- a/src/test/rustdoc/structfields.rs
+++ b/src/test/rustdoc/structfields.rs
@@ -48,3 +48,13 @@ pub enum Qux {
         // @has - //pre "// some fields omitted"
     },
 }
+
+// @has structfields/struct.Baz.html //pre "pub struct Baz { /* fields omitted */ }"
+pub struct Baz {
+    x: u8,
+    #[doc(hidden)]
+    pub y: u8,
+}
+
+// @has structfields/struct.Quux.html //pre "pub struct Quux {}"
+pub struct Quux {}