]> git.proxmox.com Git - rustc.git/blob - tests/ui/derives/derives-span-Ord-struct.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / derives / derives-span-Ord-struct.stderr
1 error[E0277]: the trait bound `Error: Ord` is not satisfied
2 --> $DIR/derives-span-Ord-struct.rs:8:5
3 |
4 LL | #[derive(Ord,Eq,PartialOrd,PartialEq)]
5 | --- in this derive macro expansion
6 LL | struct Struct {
7 LL | x: Error
8 | ^^^^^^^^ the trait `Ord` is not implemented for `Error`
9 |
10 = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
11 help: consider annotating `Error` with `#[derive(Ord)]`
12 |
13 LL + #[derive(Ord)]
14 LL | struct Error;
15 |
16
17 error: aborting due to 1 previous error
18
19 For more information about this error, try `rustc --explain E0277`.