Skip to content

Commit

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

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

Fixes rust-lang#107278 (or rather just ensures it won't resurface)
r? `@aDotInTheVoid`
  • Loading branch information
matthiaskrgr authored Aug 8, 2024
2 parents 74426e9 + 1bf30eb commit f744f75
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 f744f75

Please sign in to comment.