diff options
| author | schvv31n <tim.kurdov@gmail.com> | 2024-08-08 17:55:52 +0100 |
|---|---|---|
| committer | schvv31n <tim.kurdov@gmail.com> | 2024-08-08 17:55:52 +0100 |
| commit | 1bf30eb5aa621541f1e3ab3a470db96a35210df0 (patch) | |
| tree | cedcfb18e3e1ba3bd05ed06bbf92bb5ac98be2af | |
| parent | 8b3870784f69d8ed2ae4246d1b56f150e3131499 (diff) | |
| download | rust-1bf30eb5aa621541f1e3ab3a470db96a35210df0.tar.gz rust-1bf30eb5aa621541f1e3ab3a470db96a35210df0.zip | |
rustdoc-json: added a test for #107278
| -rw-r--r-- | tests/rustdoc-json/impls/pub_for_hidden_private.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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 00000000000..261ffbfeb4a --- /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 {} |
