rust/tests/rustdoc-json/reexport/in_root_and_mod_pub.rs
Alona Enraght-Moony f784fa7bd9 tests/rustdoc-json: Remove some needless uses of #![no_core].
Done by removing all uses of `#![no_core]`, and the reverting the ones
that failed. More involved ones are in a later commit.
2023-11-07 16:36:55 +00:00

20 lines
760 B
Rust

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[?(@.import.source=='foo::Bar')].import.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[?(@.import.source=='crate::foo::Bar')].import.id" $bar_id
// @ismany "$.index[*][?(@.name=='baz')].inner.module.items[*]" $baz_import_id
/// Inner re-export
pub use crate::foo::Bar;
}