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``
This commit is contained in:
Matthias Krüger 2024-08-09 00:03:38 +02:00 committed by GitHub
commit 8789b95b67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
//@ compile-flags: --document-private-items --document-hidden-items
pub trait TheTrait {}
#[doc(hidden)]
struct Value {}
//@ has '$.index[*][?(@.docs=="THE IMPL")]'
/// THE IMPL
impl TheTrait for Value {}