rust/tests/rustdoc-json/reexport/in_root_and_mod.rs
2023-01-11 09:32:08 +00:00

17 lines
369 B
Rust

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