]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/private-public-item-doc-test.rs
Rollup merge of #106701 - ibraheemdev:sync-sender-spin, r=Amanieu
[rust.git] / tests / rustdoc-ui / private-public-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     pub fn bar() {}
11 }