about summary refs log tree commit diff
path: root/src/test/rustdoc-json/nested.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rustdoc-json/nested.rs')
-rw-r--r--src/test/rustdoc-json/nested.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/rustdoc-json/nested.rs b/src/test/rustdoc-json/nested.rs
index e460b343d37..2f32f4ef76d 100644
--- a/src/test/rustdoc-json/nested.rs
+++ b/src/test/rustdoc-json/nested.rs
@@ -1,7 +1,25 @@
 // edition:2018
+
+// @has nested.json "$.index.['0:0'].kind" \"module\"
+// @has - "$.index.['0:0'].inner.is_crate" true
+// @has - "$.index.['0:0'].inner.items[*]" \"0:3\"
+
+// @has nested.json "$.index.['0:3'].kind" \"module\"
+// @has - "$.index.['0:3'].inner.is_crate" false
+// @has - "$.index.['0:3'].inner.items[*]" \"0:4\"
+// @has - "$.index.['0:3'].inner.items[*]" \"0:7\"
 pub mod l1 {
+
+    // @has nested.json "$.index.['0:4'].kind" \"module\"
+    // @has - "$.index.['0:4'].inner.is_crate" false
+    // @has - "$.index.['0:4'].inner.items[*]" \"0:5\"
     pub mod l3 {
+
+        // @has nested.json "$.index.['0:5'].kind" \"struct\"
+        // @has - "$.index.['0:5'].inner.struct_type" \"unit\"
         pub struct L4;
     }
+    // @has nested.json "$.index.['0:7'].kind" \"import\"
+    // @has - "$.index.['0:7'].inner.glob" false
     pub use l3::L4;
 }