Closed
Description
pub mod sub {
//! See either [foo] or [bar].
/// See [bar]
pub fn foo() {}
/// See [foo]
pub fn bar() {}
}
2 | //! See either [foo] or [bar].
| ^^^ cannot be resolved, ignoring
I don't know if this is an accidental regression, or an intentional change, but this used to resolve.
I argue that module-level docs should have the same namespace as the module they are referring to, since referring to the items of the documented module is much more common than referring to items in the parent module.
Ref #43466