From 1bf30eb5aa621541f1e3ab3a470db96a35210df0 Mon Sep 17 00:00:00 2001 From: schvv31n Date: Thu, 8 Aug 2024 17:55:52 +0100 Subject: [PATCH] rustdoc-json: added a test for #107278 --- tests/rustdoc-json/impls/pub_for_hidden_private.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/rustdoc-json/impls/pub_for_hidden_private.rs diff --git a/tests/rustdoc-json/impls/pub_for_hidden_private.rs b/tests/rustdoc-json/impls/pub_for_hidden_private.rs new file mode 100644 index 0000000000000..261ffbfeb4a4c --- /dev/null +++ b/tests/rustdoc-json/impls/pub_for_hidden_private.rs @@ -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 {}