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

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

17 lines
369 B
Rust
Raw Normal View History

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