rust/tests/rustdoc-json/reexport/simple_private.rs

15 lines
446 B
Rust
Raw Normal View History

//@ edition:2018
2021-02-26 16:55:08 -06:00
// @!has "$.index[*][?(@.name=='inner')]"
2021-02-26 16:55:08 -06:00
mod inner {
2022-08-17 05:55:09 -05:00
// @set pub_id = "$.index[*][?(@.name=='Public')].id"
2021-02-26 16:55:08 -06:00
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"
2021-02-26 16:55:08 -06:00
pub use inner::Public;
2022-07-15 10:48:46 -05:00
// @ismany "$.index[*][?(@.name=='simple_private')].inner.module.items[*]" $use_id