]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/private-item-doc-test.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / rustdoc-ui / private-item-doc-test.rs
1 #![deny(rustdoc::private_doc_tests)]
2
3 mod foo {
4     /// private doc test
5     ///
6     /// ```
7     /// assert!(false);
8     /// ```
9     //~^^^^^ ERROR documentation test in private item
10     fn bar() {}
11 }