summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-ui/private-item-doc-test.rs
blob: 1a3d6cc636d31e37c78ba94af760fe90c3557614 (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
    fn bar() {}
}