]> git.proxmox.com Git - rustc.git/blame - tests/ui/derives/derives-span-Eq-enum.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / derives / derives-span-Eq-enum.stderr
CommitLineData
1b1a35ee 1error[E0277]: the trait bound `Error: Eq` is not satisfied
ba9703b0 2 --> $DIR/derives-span-Eq-enum.rs:9:6
b7449926 3 |
136023e0
XL
4LL | #[derive(Eq,PartialEq)]
5 | -- in this derive macro expansion
6...
532ac7d7 7LL | Error
1b1a35ee 8 | ^^^^^ the trait `Eq` is not implemented for `Error`
ba9703b0 9 |
94222f64
XL
10note: required by a bound in `AssertParamIsEq`
11 --> $SRC_DIR/core/src/cmp.rs:LL:COL
17df50a5 12 = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info)
04454e1e
FG
13help: consider annotating `Error` with `#[derive(Eq)]`
14 |
353b0b11
FG
15LL + #[derive(Eq)]
16LL | struct Error;
04454e1e 17 |
b7449926
XL
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0277`.