rust/tests/rustdoc-json/reexport/in_root_and_mod.rs
2024-07-19 16:54:42 +02:00

14 lines
309 B
Rust

//@ !has "$.index[*][?(@.name=='foo')]"
mod foo {
//@ has "$.index[*][?(@.name=='Foo')]"
pub struct Foo;
}
//@ has "$.index[*].inner[?(@.import.source=='foo::Foo')]"
pub use foo::Foo;
pub mod bar {
//@ has "$.index[*].inner[?(@.import.source=='crate::foo::Foo')]"
pub use crate::foo::Foo;
}