Skip to content

Commit

Permalink
test: rustdoc-ui: Expand issue-74134 to cover types in a private module
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-hamester committed Jul 11, 2020
1 parent 689e360 commit 9704859
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/rustdoc-ui/issue-74134.rs
Expand Up @@ -24,3 +24,18 @@ pub struct Public {
/// [`PrivateType`]
private_item: u32,
}

// The following cases are identical to the ones above, except that they are in a private
// module. Thus they all fall into cases 3 and 4 and should not produce a warning.

mod private {
pub struct Public {
/// [`super::PublicType`]
/// [`super::PrivateType`]
pub public_item: u32,

/// [`super::PublicType`]
/// [`super::PrivateType`]
private_item: u32,
}
}

0 comments on commit 9704859

Please sign in to comment.