fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
2.8 KiB53 linesraw
1error[E0277]: can't compare `Comparable` with `Comparable`
2  --> $DIR/issue-34229.rs:2:46
3   |
4LL | #[derive(PartialEq, PartialOrd)] struct Nope(Comparable);
5   |                                              ^^^^^^^^^^ no implementation for `Comparable < Comparable` and `Comparable > Comparable`
6   |
7   = help: the trait `std::cmp::PartialOrd` is not implemented for `Comparable`
8   = note: required by `std::cmp::PartialOrd::partial_cmp`
9   = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
10
11error[E0277]: can't compare `Comparable` with `Comparable`
12  --> $DIR/issue-34229.rs:2:46
13   |
14LL | #[derive(PartialEq, PartialOrd)] struct Nope(Comparable);
15   |                                              ^^^^^^^^^^ no implementation for `Comparable < Comparable` and `Comparable > Comparable`
16   |
17   = help: the trait `std::cmp::PartialOrd` is not implemented for `Comparable`
18   = note: required by `std::cmp::PartialOrd::partial_cmp`
19   = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
20
21error[E0277]: can't compare `Comparable` with `Comparable`
22  --> $DIR/issue-34229.rs:2:46
23   |
24LL | #[derive(PartialEq, PartialOrd)] struct Nope(Comparable);
25   |                                              ^^^^^^^^^^ no implementation for `Comparable < Comparable` and `Comparable > Comparable`
26   |
27   = help: the trait `std::cmp::PartialOrd` is not implemented for `Comparable`
28   = note: required by `std::cmp::PartialOrd::partial_cmp`
29   = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
30
31error[E0277]: can't compare `Comparable` with `Comparable`
32  --> $DIR/issue-34229.rs:2:46
33   |
34LL | #[derive(PartialEq, PartialOrd)] struct Nope(Comparable);
35   |                                              ^^^^^^^^^^ no implementation for `Comparable < Comparable` and `Comparable > Comparable`
36   |
37   = help: the trait `std::cmp::PartialOrd` is not implemented for `Comparable`
38   = note: required by `std::cmp::PartialOrd::partial_cmp`
39   = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
40
41error[E0277]: can't compare `Comparable` with `Comparable`
42  --> $DIR/issue-34229.rs:2:46
43   |
44LL | #[derive(PartialEq, PartialOrd)] struct Nope(Comparable);
45   |                                              ^^^^^^^^^^ no implementation for `Comparable < Comparable` and `Comparable > Comparable`
46   |
47   = help: the trait `std::cmp::PartialOrd` is not implemented for `Comparable`
48   = note: required by `std::cmp::PartialOrd::partial_cmp`
49   = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
50
51error: aborting due to 5 previous errors
52
53For more information about this error, try `rustc --explain E0277`.