Closed
Description
While docs for fn Foo
are generated in the following they are not linked anywhere and can’t be found by using the search. fn Bar
is linked on the other hand.
mod internal {
pub struct Foo {
_val: ()
}
#[allow(non_snake_case)]
pub fn Foo() -> Foo {
Foo { _val: () }
}
}
pub struct Bar {
_val: ()
}
#[allow(non_snake_case)]
pub fn Bar() -> Bar {
Bar { _val: () }
}
pub use internal::Foo;
fn main() {
let _ = Foo();
let _ = Bar();
}
On the other hand, when using pub use internal::*
it works like expected. This is inconsistent as the function is clearly accessible from fn main
in both cases.