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