summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-ui/intra-doc/private.rs
blob: 525332ddaac3badc8b9209d5361ee88ba7d6eff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// check-pass
// revisions: public private
// [private]compile-flags: --document-private-items

// make sure to update `rustdoc/intra-doc/private.rs` if you update this file

/// docs [DontDocMe] [DontDocMe::f] [DontDocMe::x]
//~^ WARNING public documentation for `DocMe` links to private item `DontDocMe`
//~| WARNING public documentation for `DocMe` links to private item `DontDocMe::x`
//~| WARNING public documentation for `DocMe` links to private item `DontDocMe::f`
pub struct DocMe;
struct DontDocMe {
    x: usize,
}

impl DontDocMe {
    fn f() {}
}