Files
rust/src/test/rustdoc-json/nested.rs

25 lines
982 B
Rust
Raw Normal View History

2020-12-05 22:23:17 +00:00
// edition:2018
2021-01-19 14:21:05 -05:00
// @has nested.json "$.index[*][?(@.name=='nested')].kind" \"module\"
// @has - "$.index[*][?(@.name=='nested')].inner.is_crate" true
// @count - "$.index[*][?(@.name=='nested')].inner.items[*]" 1
2021-01-19 14:21:05 -05:00
// @has nested.json "$.index[*][?(@.name=='l1')].kind" \"module\"
// @has - "$.index[*][?(@.name=='l1')].inner.is_crate" false
// @count - "$.index[*][?(@.name=='l1')].inner.items[*]" 2
2020-12-05 22:23:17 +00:00
pub mod l1 {
2021-01-19 14:21:05 -05:00
// @has nested.json "$.index[*][?(@.name=='l3')].kind" \"module\"
// @has - "$.index[*][?(@.name=='l3')].inner.is_crate" false
// @count - "$.index[*][?(@.name=='l3')].inner.items[*]" 1
2020-12-05 22:23:17 +00:00
pub mod l3 {
2021-01-19 14:21:05 -05:00
// @has nested.json "$.index[*][?(@.name=='L4')].kind" \"struct\"
// @has - "$.index[*][?(@.name=='L4')].inner.struct_type" \"unit\"
2020-12-05 22:23:17 +00:00
pub struct L4;
}
2021-01-19 14:21:05 -05:00
// @has nested.json "$.index[*][?(@.inner.span=='l3::L4')].kind" \"import\"
// @has - "$.index[*][?(@.inner.span=='l3::L4')].inner.glob" false
2020-12-05 22:23:17 +00:00
pub use l3::L4;
}