2021-02-26 22:55:08 +00:00
|
|
|
//@ edition:2018
|
|
|
|
|
2024-07-19 14:50:47 +00:00
|
|
|
//@ set inner_id = "$.index[*][?(@.name=='inner')].id"
|
2021-02-26 22:55:08 +00:00
|
|
|
pub mod inner {
|
|
|
|
|
2024-07-19 14:50:47 +00:00
|
|
|
//@ set public_id = "$.index[*][?(@.name=='Public')].id"
|
|
|
|
//@ ismany "$.index[*][?(@.name=='inner')].inner.module.items[*]" $public_id
|
2021-02-26 22:55:08 +00:00
|
|
|
pub struct Public;
|
|
|
|
}
|
|
|
|
|
2024-07-19 14:50:47 +00:00
|
|
|
//@ set import_id = "$.index[*][?(@.docs=='Outer')].id"
|
2024-08-04 23:44:35 +00:00
|
|
|
//@ is "$.index[*][?(@.docs=='Outer')].inner.use.source" \"inner::Public\"
|
2023-05-22 17:17:52 +00:00
|
|
|
/// Outer
|
2021-02-26 22:55:08 +00:00
|
|
|
pub use inner::Public;
|
2022-07-19 15:57:38 +00:00
|
|
|
|
2024-07-19 14:50:47 +00:00
|
|
|
//@ ismany "$.index[*][?(@.name=='simple_public')].inner.module.items[*]" $import_id $inner_id
|
2025-01-10 22:42:53 +00:00
|
|
|
|
|
|
|
//@ has "$.paths[*][?(@.kind=='module')].path" '["simple_public"]'
|
|
|
|
//@ has "$.paths[*][?(@.kind=='module')].path" '["simple_public", "inner"]'
|
|
|
|
//@ has "$.paths[*][?(@.kind=='struct')].path" '["simple_public", "inner", "Public"]'
|
|
|
|
//@ !has "$.paths[*].path" '["simple_public", "Public"]'
|