rust/tests/rustdoc-js/reexport-dedup-method.rs

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

19 lines
365 B
Rust
Raw Normal View History

// This test enforces that the (renamed) reexports are present in the search results.
2024-06-03 07:35:56 +00:00
#![crate_name = "foo"]
pub mod fmt {
pub struct Subscriber;
impl Subscriber {
pub fn dostuff(&self) {}
}
}
mod foo {
pub struct AnotherOne;
impl AnotherOne {
pub fn dostuff(&self) {}
}
}
pub use fmt::Subscriber;
2024-06-03 07:35:56 +00:00
pub use foo::AnotherOne;