]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0277]: the trait bound `PartialEqNotEq: Eq` is not satisfied |
136023e0 | 2 | --> $DIR/union-derive-eq.rs:16:5 |
ff7c6d11 | 3 | | |
136023e0 XL |
4 | LL | #[derive(Eq)] |
5 | | -- in this derive macro expansion | |
6 | LL | union U2 { | |
532ac7d7 | 7 | LL | a: PartialEqNotEq, |
1b1a35ee | 8 | | ^^^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `PartialEqNotEq` |
ba9703b0 | 9 | | |
94222f64 XL |
10 | note: required by a bound in `AssertParamIsEq` |
11 | --> $SRC_DIR/core/src/cmp.rs:LL:COL | |
ff7c6d11 | 12 | | |
94222f64 XL |
13 | LL | pub struct AssertParamIsEq<T: Eq + ?Sized> { |
14 | | ^^ required by this bound in `AssertParamIsEq` | |
17df50a5 | 15 | = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info) |
ff7c6d11 XL |
16 | |
17 | error: aborting due to previous error | |
18 | ||
0531ce1d | 19 | For more information about this error, try `rustc --explain E0277`. |