0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-25 04:06:55 +01:00
rust/tests/rustdoc-json/reexport/in_root_and_mod.rs

14 lines
303 B
Rust

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