mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
17 lines
463 B
Rust
17 lines
463 B
Rust
// 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
|