False positive: const_static_lifetime #2438
Labels
C-bug
Category: Clippy is not doing the correct thing
good first issue
These issues are a good way to get started with Clippy
Running
cargo clippy
over my project with#![cfg_attr(feature = "cargo-clippy", deny(clippy))]
set results in the following errors:Doing so promptly results in
I presume that following Clippy's advice and running into a compiler-enforced hard error is a bug in Clippy?
In this particular case, the const in question is a trait associated constant:
and the positions it is reporting for change are implementations of it:
Removing any
'static
marker, whether in the trait declaration or in implementations of it, causes E0106 to occur.The text was updated successfully, but these errors were encountered: