summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/private-public-item-doc-test.rs
blob: 7cc62b38cc26080174a39ef01c3ff1b64176dfce (plain)
1
2
3
4
5
6
7
8
9
10
11
#![deny(rustdoc::private_doc_tests)]

mod foo {
    /// private doc test
    ///
    /// ```
    /// assert!(false);
    /// ```
    //~^^^^^ ERROR documentation test in private item
    pub fn bar() {}
}