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