about summary refs log tree commit diff
path: root/tests/rustdoc-json/visibility/doc_hidden_default.rs
blob: 3fa91b3c4ad2dc1f909c9789b265076ff9fc91a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#![no_std]

// Without `--document-hidden-items`,
// none of these items are present in rustdoc JSON.

//@ !has "$.index[?(@.name=='func')]"
#[doc(hidden)]
pub fn func() {}

//@ !has "$.index[?(@.name=='Unit')]"
#[doc(hidden)]
pub struct Unit;

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