2020-09-02 10:40:56 +03:00
|
|
|
error[E0277]: the trait bound `PartialEqNotEq: Eq` is not satisfied
|
2021-05-13 10:42:25 -04:00
|
|
|
--> $DIR/union-derive-eq.rs:16:5
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2021-07-17 11:13:50 -07:00
|
|
|
LL | #[derive(Eq)]
|
|
|
|
| -- in this derive macro expansion
|
|
|
|
LL | union U2 {
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | a: PartialEqNotEq,
|
2020-09-02 10:40:56 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `PartialEqNotEq`
|
2021-06-10 13:52:00 +02:00
|
|
|
|
|
2021-07-31 09:26:55 -07:00
|
|
|
note: required by a bound in `AssertParamIsEq`
|
|
|
|
--> $SRC_DIR/core/src/cmp.rs:LL:COL
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-03-31 23:58:45 +09:00
|
|
|
help: consider annotating `PartialEqNotEq` with `#[derive(Eq)]`
|
|
|
|
|
|
2023-03-18 02:18:39 +00:00
|
|
|
LL + #[derive(Eq)]
|
|
|
|
LL | struct PartialEqNotEq;
|
2022-03-31 23:58:45 +09:00
|
|
|
|
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|