impl_trait_in_params
doesn't work for non-public functions
#12792
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
The lint only appears for public functions (i.e. public API surface of a library).
Lint Name
impl_trait_in_params
Reproducer
I tried this code:
I expected to see this happen:
2 instances of
impl_trait_in_params
should appear, one for each function.Instead, this happened:
Only 1 instance appeared for the
pub
function:Version
The text was updated successfully, but these errors were encountered: