Skip to content

Commit 8789b95

Browse files
authored
Rollup merge of #128836 - its-the-shrimp:add_test_for_107278, r=aDotInTheVoid
rustdoc-json: add a test for impls on private & hidden types Fixes #107278 (or rather just ensures it won't resurface) r? ``@aDotInTheVoid``
2 parents 5e388ea + 1bf30eb commit 8789b95

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//@ compile-flags: --document-private-items --document-hidden-items
2+
3+
pub trait TheTrait {}
4+
5+
#[doc(hidden)]
6+
struct Value {}
7+
8+
//@ has '$.index[*][?(@.docs=="THE IMPL")]'
9+
/// THE IMPL
10+
impl TheTrait for Value {}

0 commit comments

Comments
 (0)