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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
806 B
Rust
Raw Normal View History

2021-02-26 22:55:08 +00:00
//@ edition:2018
//@ !has "$.index[*][?(@.name=='inner')]"
2021-02-26 22:55:08 +00:00
mod inner {
//@ set pub_id = "$.index[*][?(@.name=='Public')].id"
2021-02-26 22:55:08 +00:00
pub struct Public;
}
//@ is "$.index[*][?(@.inner.use)].inner.use.name" \"Public\"
//@ is "$.index[*][?(@.inner.use)].inner.use.id" $pub_id
//@ set use_id = "$.index[*][?(@.inner.use)].id"
2021-02-26 22:55:08 +00:00
pub use inner::Public;
2022-07-15 15:48:46 +00:00
//@ ismany "$.index[*][?(@.name=='simple_private')].inner.module.items[*]" $use_id
// Test for https://github.com/rust-lang/rust/issues/135309
//@ has "$.paths[*][?(@.kind=='module')].path" '["simple_private"]'
//@ !has "$.paths[*].path" '["simple_private", "inner"]'
//@ has "$.paths[*][?(@.kind=='struct')].path" '["simple_private", "inner", "Public"]'
//@ !has "$.paths[*].path" '["simple_private", "Public"]'