about summary refs log tree commit diff
path: root/tests/rustdoc-json/visibility/doc_hidden_documented.rs
blob: f05e4f9d92d5880235a82db70c3a3d07cf800eab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ compile-flags: --document-hidden-items
#![no_std]

//@ is "$.index[?(@.name=='func')].attrs" '[{"other": "#[doc(hidden)]"}]'
#[doc(hidden)]
pub fn func() {}

//@ is "$.index[?(@.name=='Unit')].attrs" '[{"other": "#[doc(hidden)]"}]'
#[doc(hidden)]
pub struct Unit;

//@ is "$.index[?(@.name=='hidden')].attrs" '[{"other": "#[doc(hidden)]"}]'
#[doc(hidden)]
pub mod hidden {
    //@ is "$.index[?(@.name=='Inner')].attrs" '[]'
    pub struct Inner;
}