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

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

20 lines
748 B
Rust
Raw Normal View History

pub mod foo {
//@ set bar_id = "$.index[*][?(@.name=='Bar')].id"
//@ ismany "$.index[*][?(@.name=='foo')].inner.module.items[*]" $bar_id
pub struct Bar;
}
//@ set root_import_id = "$.index[*][?(@.docs=='Outer re-export')].id"
//@ is "$.index[*].inner[?(@.use.source=='foo::Bar')].use.id" $bar_id
//@ has "$.index[*][?(@.name=='in_root_and_mod_pub')].inner.module.items[*]" $root_import_id
/// Outer re-export
pub use foo::Bar;
pub mod baz {
//@ set baz_import_id = "$.index[*][?(@.docs=='Inner re-export')].id"
//@ is "$.index[*].inner[?(@.use.source=='crate::foo::Bar')].use.id" $bar_id
//@ ismany "$.index[*][?(@.name=='baz')].inner.module.items[*]" $baz_import_id
/// Inner re-export
pub use crate::foo::Bar;
}