]> git.proxmox.com Git - rustc.git/blame - src/test/ui/union/union-derive-eq.thirunsafeck.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / union / union-derive-eq.thirunsafeck.stderr
CommitLineData
1b1a35ee 1error[E0277]: the trait bound `PartialEqNotEq: Eq` is not satisfied
136023e0 2 --> $DIR/union-derive-eq.rs:16:5
ff7c6d11 3 |
136023e0
XL
4LL | #[derive(Eq)]
5 | -- in this derive macro expansion
6LL | union U2 {
532ac7d7 7LL | a: PartialEqNotEq,
1b1a35ee 8 | ^^^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `PartialEqNotEq`
ba9703b0 9 |
94222f64
XL
10note: required by a bound in `AssertParamIsEq`
11 --> $SRC_DIR/core/src/cmp.rs:LL:COL
ff7c6d11 12 |
94222f64
XL
13LL | 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
17error: aborting due to previous error
18
0531ce1d 19For more information about this error, try `rustc --explain E0277`.