Skip to content

Commit 9704859

Browse files
test: rustdoc-ui: Expand issue-74134 to cover types in a private module
1 parent 689e360 commit 9704859

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/rustdoc-ui/issue-74134.rs

+15
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,18 @@ pub struct Public {
2424
/// [`PrivateType`]
2525
private_item: u32,
2626
}
27+
28+
// The following cases are identical to the ones above, except that they are in a private
29+
// module. Thus they all fall into cases 3 and 4 and should not produce a warning.
30+
31+
mod private {
32+
pub struct Public {
33+
/// [`super::PublicType`]
34+
/// [`super::PrivateType`]
35+
pub public_item: u32,
36+
37+
/// [`super::PublicType`]
38+
/// [`super::PrivateType`]
39+
private_item: u32,
40+
}
41+
}

0 commit comments

Comments
 (0)