mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-19 01:24:05 +00:00
15 lines
396 B
Text
15 lines
396 B
Text
error: re-implementing `PartialEq::ne` is unnecessary
|
|
--> tests/ui/partialeq_ne_impl.rs:9:5
|
|
|
|
|
LL | / fn ne(&self, _: &Foo) -> bool {
|
|
LL | |
|
|
LL | |
|
|
LL | | false
|
|
LL | | }
|
|
| |_____^
|
|
|
|
|
= note: `-D clippy::partialeq-ne-impl` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::partialeq_ne_impl)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|