missing_errors_doc
warns on test functions when check-private-items = true
#13391
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Summary
When
check-private-items = true
is set inclippy.toml
,missing_errors_doc
warnings can appear on test functions, even though there's no reason to document the meanings of errors returned by test functions, since these errors won't used by other code.Lint Name
missing_errors_doc
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No warning.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: