]> git.proxmox.com Git - rustc.git/blame - tests/ui/derives/derives-span-PartialEq-tuple-struct.stderr
New upstream version 1.70.0+dfsg1
[rustc.git] / tests / ui / derives / derives-span-PartialEq-tuple-struct.stderr
CommitLineData
b7449926 1error[E0369]: binary operation `==` cannot be applied to type `Error`
ba9703b0 2 --> $DIR/derives-span-PartialEq-tuple-struct.rs:8:5
b7449926 3 |
136023e0
XL
4LL | #[derive(PartialEq)]
5 | --------- in this derive macro expansion
6LL | struct Struct(
532ac7d7 7LL | Error
b7449926
XL
8 | ^^^^^
9 |
c295e0f8
XL
10note: an implementation of `PartialEq<_>` might be missing for `Error`
11 --> $DIR/derives-span-PartialEq-tuple-struct.rs:4:1
12 |
13LL | 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
16help: consider annotating `Error` with `#[derive(PartialEq)]`
17 |
353b0b11
FG
18LL + #[derive(PartialEq)]
19LL | struct Error;
c295e0f8 20 |
b7449926 21
f2b60f7d 22error: aborting due to previous error
b7449926
XL
23
24For more information about this error, try `rustc --explain E0369`.