rust/tests/rustdoc-json/reexport/simple_private.rs
2023-01-11 09:32:08 +00:00

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