]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0369]: binary operation `==` cannot be applied to type `Error` |
ba9703b0 | 2 | --> $DIR/derives-span-PartialEq-tuple-struct.rs:8:5 |
b7449926 | 3 | | |
136023e0 XL |
4 | LL | #[derive(PartialEq)] |
5 | | --------- in this derive macro expansion | |
6 | LL | struct Struct( | |
532ac7d7 | 7 | LL | Error |
b7449926 XL |
8 | | ^^^^^ |
9 | | | |
c295e0f8 XL |
10 | note: an implementation of `PartialEq<_>` might be missing for `Error` |
11 | --> $DIR/derives-span-PartialEq-tuple-struct.rs:4:1 | |
12 | | | |
13 | LL | struct Error; | |
064997fb | 14 | | ^^^^^^^^^^^^ must implement `PartialEq<_>` |
17df50a5 | 15 | = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info) |
c295e0f8 XL |
16 | help: consider annotating `Error` with `#[derive(PartialEq)]` |
17 | | | |
353b0b11 FG |
18 | LL + #[derive(PartialEq)] |
19 | LL | struct Error; | |
c295e0f8 | 20 | | |
b7449926 | 21 | |
f2b60f7d | 22 | error: aborting due to previous error |
b7449926 XL |
23 | |
24 | For more information about this error, try `rustc --explain E0369`. |