rust/tests/rustdoc-ui/intra-doc/reachable-non-exported.rs

14 lines
310 B
Rust
Raw Normal View History

// The structure is reachable, but not exported, so rustdoc
// doesn't attempt to request doc link resolutions on it.
// check-pass
mod private {
/// [core::str::FromStr]
pub struct ReachableButNotExported;
}
pub fn foo() -> private::ReachableButNotExported {
private::ReachableButNotExported
}