blob: d058ce0598d43e557d1ecd998365a4252642e636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// edition:2018
#![no_core]
#![feature(no_core)]
// @!has "$.index[*][?(@.name=='inner')]"
mod inner {
// @set pub_id = "$.index[*][?(@.name=='Public')].id"
pub struct Public;
}
// @is "$.index[*][?(@.kind=='import')].inner.name" \"Public\"
// @is "$.index[*][?(@.kind=='import')].inner.id" $pub_id
// @set use_id = "$.index[*][?(@.kind=='import')].id"
pub use inner::Public;
// @ismany "$.index[*][?(@.name=='simple_private')].inner.items[*]" $use_id
|