extra_unused_lifetimes
does not warn on spurious for<'a>
#13812
Labels
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
I had the following code
A colleague correctly noted I forgot to remove the lifetime qualification after changing from Path to PathBuf (though I probably didn't even need it before, I was experimenting with things). Clippy could have told me that too, but it didn't. (Nor does it for the longer-standing syntax of
&mut dyn for<'a> FnMut(PathBuf)
.)I think
extra_unused_lifetimes
is the lint that should have gotten it, but maybe not.The text was updated successfully, but these errors were encountered: