diff options
Diffstat (limited to 'src/test/rustdoc-ui/private-public-item-doc-test.rs')
-rw-r--r-- | src/test/rustdoc-ui/private-public-item-doc-test.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/private-public-item-doc-test.rs b/src/test/rustdoc-ui/private-public-item-doc-test.rs new file mode 100644 index 000000000..7cc62b38c --- /dev/null +++ b/src/test/rustdoc-ui/private-public-item-doc-test.rs @@ -0,0 +1,11 @@ +#![deny(rustdoc::private_doc_tests)] + +mod foo { + /// private doc test + /// + /// ``` + /// assert!(false); + /// ``` + //~^^^^^ ERROR documentation test in private item + pub fn bar() {} +} |