2021-02-26 22:55:08 +00:00
|
|
|
// edition:2018
|
|
|
|
#![no_core]
|
|
|
|
#![feature(no_core)]
|
|
|
|
|
2022-08-28 02:35:44 +01:00
|
|
|
// @!has "$.index[*][?(@.name=='inner')]"
|
2021-02-26 22:55:08 +00:00
|
|
|
mod inner {
|
2022-08-17 12:55:09 +02:00
|
|
|
// @set pub_id = "$.index[*][?(@.name=='Public')].id"
|
2021-02-26 22:55:08 +00:00
|
|
|
pub struct Public;
|
|
|
|
}
|
|
|
|
|
2022-08-17 12:55:09 +02:00
|
|
|
// @is "$.index[*][?(@.kind=='import')].inner.name" \"Public\"
|
2022-08-28 02:35:44 +01:00
|
|
|
// @is "$.index[*][?(@.kind=='import')].inner.id" $pub_id
|
2022-08-17 12:55:09 +02:00
|
|
|
// @set use_id = "$.index[*][?(@.kind=='import')].id"
|
2021-02-26 22:55:08 +00:00
|
|
|
pub use inner::Public;
|
2022-07-15 17:48:46 +02:00
|
|
|
|
2022-08-17 12:55:09 +02:00
|
|
|
// @ismany "$.index[*][?(@.name=='simple_private')].inner.items[*]" $use_id
|