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

26 lines
857 B
Rust
Raw Normal View History

2020-12-05 22:23:17 +00:00
// 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\"
2020-12-05 22:23:17 +00:00
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\"
2020-12-05 22:23:17 +00:00
pub mod l3 {
// @has nested.json "$.index.['0:5'].kind" \"struct\"
// @has - "$.index.['0:5'].inner.struct_type" \"unit\"
2020-12-05 22:23:17 +00:00
pub struct L4;
}
// @has nested.json "$.index.['0:7'].kind" \"import\"
// @has - "$.index.['0:7'].inner.glob" false
2020-12-05 22:23:17 +00:00
pub use l3::L4;
}