2020-12-05 16:23:17 -06:00
|
|
|
// edition:2018
|
2021-02-24 23:16:47 -06:00
|
|
|
// compile-flags: --crate-version 1.0.0
|
2021-01-15 19:34:15 -06:00
|
|
|
|
2022-08-17 05:55:09 -05:00
|
|
|
// @is "$.crate_version" \"1.0.0\"
|
2023-05-22 12:17:52 -05:00
|
|
|
// @has "$.index[*][?(@.name=='nested')].inner.module"
|
|
|
|
// @is "$.index[*][?(@.name=='nested')].inner.module.is_crate" true
|
2022-07-19 10:57:38 -05:00
|
|
|
|
2022-08-17 05:55:09 -05:00
|
|
|
// @set l1_id = "$.index[*][?(@.name=='l1')].id"
|
2023-05-22 12:17:52 -05:00
|
|
|
// @ismany "$.index[*][?(@.name=='nested')].inner.module.items[*]" $l1_id
|
2021-01-15 19:34:15 -06:00
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @has "$.index[*][?(@.name=='l1')].inner.module"
|
|
|
|
// @is "$.index[*][?(@.name=='l1')].inner.module.is_crate" false
|
2020-12-05 16:23:17 -06:00
|
|
|
pub mod l1 {
|
2023-05-22 12:17:52 -05:00
|
|
|
// @has "$.index[*][?(@.name=='l3')].inner.module"
|
|
|
|
// @is "$.index[*][?(@.name=='l3')].inner.module.is_crate" false
|
2022-08-17 05:55:09 -05:00
|
|
|
// @set l3_id = "$.index[*][?(@.name=='l3')].id"
|
2020-12-05 16:23:17 -06:00
|
|
|
pub mod l3 {
|
2021-01-15 19:34:15 -06:00
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @has "$.index[*][?(@.name=='L4')].inner.struct"
|
|
|
|
// @is "$.index[*][?(@.name=='L4')].inner.struct.kind" '"unit"'
|
2022-08-17 05:55:09 -05:00
|
|
|
// @set l4_id = "$.index[*][?(@.name=='L4')].id"
|
2023-05-22 12:17:52 -05:00
|
|
|
// @ismany "$.index[*][?(@.name=='l3')].inner.module.items[*]" $l4_id
|
2020-12-05 16:23:17 -06:00
|
|
|
pub struct L4;
|
|
|
|
}
|
2023-05-22 12:17:52 -05:00
|
|
|
// @is "$.index[*][?(@.inner.import)].inner.import.glob" false
|
|
|
|
// @is "$.index[*][?(@.inner.import)].inner.import.source" '"l3::L4"'
|
|
|
|
// @is "$.index[*][?(@.inner.import)].inner.import.glob" false
|
|
|
|
// @is "$.index[*][?(@.inner.import)].inner.import.id" $l4_id
|
|
|
|
// @set l4_use_id = "$.index[*][?(@.inner.import)].id"
|
2020-12-05 16:23:17 -06:00
|
|
|
pub use l3::L4;
|
|
|
|
}
|
2023-05-22 12:17:52 -05:00
|
|
|
// @ismany "$.index[*][?(@.name=='l1')].inner.module.items[*]" $l3_id $l4_use_id
|