Static rustc_lint_defs::builtin::USELESS_DEPRECATED
source · [−]pub static USELESS_DEPRECATED: &'static Lint
Expand description
The useless_deprecated
lint detects deprecation attributes with no effect.
Example
ⓘ
struct X;
#[deprecated = "message"]
impl Default for X {
fn default() -> Self {
X
}
}
{{produces}}
Explanation
Deprecation attributes have no effect on trait implementations.