mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
15 lines
446 B
Rust
15 lines
446 B
Rust
//@ edition:2018
|
|
|
|
//@ !has "$.index[*][?(@.name=='inner')]"
|
|
mod inner {
|
|
//@ set pub_id = "$.index[*][?(@.name=='Public')].id"
|
|
pub struct Public;
|
|
}
|
|
|
|
//@ is "$.index[*][?(@.inner.import)].inner.import.name" \"Public\"
|
|
//@ is "$.index[*][?(@.inner.import)].inner.import.id" $pub_id
|
|
//@ set use_id = "$.index[*][?(@.inner.import)].id"
|
|
pub use inner::Public;
|
|
|
|
//@ ismany "$.index[*][?(@.name=='simple_private')].inner.module.items[*]" $use_id
|