Skip to content

Commit

Permalink
Rollup merge of #128836 - its-the-shrimp:add_test_for_107278, r=aDotI…
Browse files Browse the repository at this point in the history
…nTheVoid

rustdoc-json: add a test for impls on private & hidden types

Fixes #107278 (or rather just ensures it won't resurface)
r? ``@aDotInTheVoid``
  • Loading branch information
matthiaskrgr authored Aug 8, 2024
2 parents 5e388ea + 1bf30eb commit 8789b95
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/rustdoc-json/impls/pub_for_hidden_private.rs
Original file line number Diff line number Diff line change
@@ -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 {}

0 comments on commit 8789b95

Please sign in to comment.