mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-22 05:24:48 +00:00
20 lines
554 B
Rust
20 lines
554 B
Rust
// edition:2018
|
|
|
|
#![no_core]
|
|
#![feature(no_core)]
|
|
|
|
// @set inner_id = "$.index[*][?(@.name=='inner')].id"
|
|
pub mod inner {
|
|
|
|
// @set public_id = "$.index[*][?(@.name=='Public')].id"
|
|
// @ismany "$.index[*][?(@.name=='inner')].inner.module.items[*]" $public_id
|
|
pub struct Public;
|
|
}
|
|
|
|
// @set import_id = "$.index[*][?(@.docs=='Outer')].id"
|
|
// @is "$.index[*][?(@.docs=='Outer')].inner.import.source" \"inner::Public\"
|
|
/// Outer
|
|
pub use inner::Public;
|
|
|
|
// @ismany "$.index[*][?(@.name=='simple_public')].inner.module.items[*]" $import_id $inner_id
|