blob: 9868cf8faa0846ba1fd1e81efb0890c999701350 [file]
error[E0046]: not all trait items implemented, missing one of: `eq`, `neq`
--> $DIR/rustc_must_implement_one_of.rs:41:1
|
LL | fn eq(&self, other: &Self) -> bool {
| ---------------------------------- `eq` from trait
...
LL | fn neq(&self, other: &Self) -> bool {
| ----------------------------------- `neq` from trait
...
LL | impl Equal for T3 {}
| ^^^^^^^^^^^^^^^^^ missing one of `eq`, `neq` in implementation
|
note: required because of this annotation
--> $DIR/rustc_must_implement_one_of.rs:3:1
|
LL | #[rustc_must_implement_one_of(eq, neq)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0046`.