From 900db489004a36567d7952b0cb9e56b3309d3596 Mon Sep 17 00:00:00 2001 From: Alexey Semenyuk Date: Sun, 27 Oct 2024 14:53:20 +0500 Subject: [PATCH] Add test case for missing_errors_doc at tests with option check-private-items = true --- tests/ui-toml/private-doc-errors/doc_lints.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/ui-toml/private-doc-errors/doc_lints.rs b/tests/ui-toml/private-doc-errors/doc_lints.rs index 79c875146..c5d00c91b 100644 --- a/tests/ui-toml/private-doc-errors/doc_lints.rs +++ b/tests/ui-toml/private-doc-errors/doc_lints.rs @@ -51,4 +51,10 @@ pub mod __macro { } } +#[warn(clippy::missing_errors_doc)] +#[test] +fn test() -> Result<(), ()> { + Ok(()) +} + fn main() {}