diff options
| author | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2021-02-20 01:25:09 +0000 |
|---|---|---|
| committer | Nixon Enraght-Moony <nixon.emoony@gmail.com> | 2021-02-20 01:25:09 +0000 |
| commit | cd5f603c314edcf2d75656ac86fc1d303aacfb83 (patch) | |
| tree | 953085a28bcb3af89d064c6415e38c18d374b3d2 /src/test/rustdoc-json | |
| parent | a00eb7ee1d8f5b38b94410940e87af9c10ed458a (diff) | |
| download | rust-cd5f603c314edcf2d75656ac86fc1d303aacfb83.tar.gz rust-cd5f603c314edcf2d75656ac86fc1d303aacfb83.zip | |
Implement @set
Diffstat (limited to 'src/test/rustdoc-json')
| -rw-r--r-- | src/test/rustdoc-json/nested.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/rustdoc-json/nested.rs b/src/test/rustdoc-json/nested.rs index f32692b70cd..2e0179113ac 100644 --- a/src/test/rustdoc-json/nested.rs +++ b/src/test/rustdoc-json/nested.rs @@ -7,15 +7,18 @@ // @is nested.json "$.index[*][?(@.name=='l1')].kind" \"module\" // @is - "$.index[*][?(@.name=='l1')].inner.is_crate" false // @count - "$.index[*][?(@.name=='l1')].inner.items[*]" 2 +// @set l1_id = - "$.index[*][?(@.name=='l1')].id" pub mod l1 { // @is nested.json "$.index[*][?(@.name=='l3')].kind" \"module\" // @is - "$.index[*][?(@.name=='l3')].inner.is_crate" false // @count - "$.index[*][?(@.name=='l3')].inner.items[*]" 1 + // @set l3_id = - "$.index[*][?(@.name=='l3')].id" pub mod l3 { // @is nested.json "$.index[*][?(@.name=='L4')].kind" \"struct\" // @is - "$.index[*][?(@.name=='L4')].inner.struct_type" \"unit\" + // @set l4_id = - "$.index[*][?(@.name=='L4')].id" pub struct L4; } // @is nested.json "$.index[*][?(@.inner.span=='l3::L4')].kind" \"import\" |
