rust/tests/ui/range/range_traits-1.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

142 lines
7.3 KiB
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0277]: can't compare `std::ops::Range<usize>` with `std::ops::Range<usize>`
2018-12-25 15:56:47 +00:00
--> $DIR/range_traits-1.rs:5:5
2018-08-08 12:28:26 +00:00
|
LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
| ---------- in this derive macro expansion
LL | struct AllTheRanges {
2018-08-08 12:28:26 +00:00
LL | a: Range<usize>,
| ^^^^^^^^^^^^^^^ no implementation for `std::ops::Range<usize> < std::ops::Range<usize>` and `std::ops::Range<usize> > std::ops::Range<usize>`
|
= help: the trait `PartialOrd` is not implemented for `std::ops::Range<usize>`
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
2021-02-09 00:00:00 +00:00
--> $DIR/range_traits-1.rs:8:5
2018-08-08 12:28:26 +00:00
|
LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
| ---------- in this derive macro expansion
...
2018-08-08 12:28:26 +00:00
LL | b: RangeTo<usize>,
| ^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeTo<usize> < std::ops::RangeTo<usize>` and `std::ops::RangeTo<usize> > std::ops::RangeTo<usize>`
|
= help: the trait `PartialOrd` is not implemented for `std::ops::RangeTo<usize>`
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
2021-02-09 00:00:00 +00:00
--> $DIR/range_traits-1.rs:11:5
2018-08-08 12:28:26 +00:00
|
LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
| ---------- in this derive macro expansion
...
2018-08-08 12:28:26 +00:00
LL | c: RangeFrom<usize>,
| ^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeFrom<usize> < std::ops::RangeFrom<usize>` and `std::ops::RangeFrom<usize> > std::ops::RangeFrom<usize>`
|
= help: the trait `PartialOrd` is not implemented for `std::ops::RangeFrom<usize>`
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
2021-02-09 00:00:00 +00:00
--> $DIR/range_traits-1.rs:14:5
2018-08-08 12:28:26 +00:00
|
LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
| ---------- in this derive macro expansion
...
2018-08-08 12:28:26 +00:00
LL | d: RangeFull,
| ^^^^^^^^^^^^ no implementation for `std::ops::RangeFull < std::ops::RangeFull` and `std::ops::RangeFull > std::ops::RangeFull`
|
= help: the trait `PartialOrd` is not implemented for `std::ops::RangeFull`
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
2021-02-09 00:00:00 +00:00
--> $DIR/range_traits-1.rs:17:5
2018-08-08 12:28:26 +00:00
|
LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
| ---------- in this derive macro expansion
...
2018-08-08 12:28:26 +00:00
LL | e: RangeInclusive<usize>,
| ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeInclusive<usize> < std::ops::RangeInclusive<usize>` and `std::ops::RangeInclusive<usize> > std::ops::RangeInclusive<usize>`
|
= help: the trait `PartialOrd` is not implemented for `std::ops::RangeInclusive<usize>`
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
2021-02-09 00:00:00 +00:00
--> $DIR/range_traits-1.rs:20:5
2018-08-08 12:28:26 +00:00
|
LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
| ---------- in this derive macro expansion
...
2018-08-08 12:28:26 +00:00
LL | f: RangeToInclusive<usize>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeToInclusive<usize> < std::ops::RangeToInclusive<usize>` and `std::ops::RangeToInclusive<usize> > std::ops::RangeToInclusive<usize>`
|
= help: the trait `PartialOrd` is not implemented for `std::ops::RangeToInclusive<usize>`
= note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
error[E0277]: the trait bound `std::ops::Range<usize>: Ord` is not satisfied
2018-12-25 15:56:47 +00:00
--> $DIR/range_traits-1.rs:5:5
2018-08-08 12:28:26 +00:00
|
LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
| --- in this derive macro expansion
LL | struct AllTheRanges {
2018-08-08 12:28:26 +00:00
LL | a: Range<usize>,
| ^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::Range<usize>`
2018-08-08 12:28:26 +00:00
|
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
error[E0277]: the trait bound `std::ops::RangeTo<usize>: Ord` is not satisfied
2021-02-09 00:00:00 +00:00
--> $DIR/range_traits-1.rs:8:5
2018-08-08 12:28:26 +00:00
|
LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
| --- in this derive macro expansion
...
2018-08-08 12:28:26 +00:00
LL | b: RangeTo<usize>,
| ^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeTo<usize>`
2018-08-08 12:28:26 +00:00
|
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
error[E0277]: the trait bound `std::ops::RangeFrom<usize>: Ord` is not satisfied
2021-02-09 00:00:00 +00:00
--> $DIR/range_traits-1.rs:11:5
2018-08-08 12:28:26 +00:00
|
LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
| --- in this derive macro expansion
...
2018-08-08 12:28:26 +00:00
LL | c: RangeFrom<usize>,
| ^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFrom<usize>`
2018-08-08 12:28:26 +00:00
|
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
error[E0277]: the trait bound `std::ops::RangeFull: Ord` is not satisfied
2021-02-09 00:00:00 +00:00
--> $DIR/range_traits-1.rs:14:5
2018-08-08 12:28:26 +00:00
|
LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
| --- in this derive macro expansion
...
2018-08-08 12:28:26 +00:00
LL | d: RangeFull,
| ^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFull`
2018-08-08 12:28:26 +00:00
|
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
error[E0277]: the trait bound `std::ops::RangeInclusive<usize>: Ord` is not satisfied
2021-02-09 00:00:00 +00:00
--> $DIR/range_traits-1.rs:17:5
2018-08-08 12:28:26 +00:00
|
LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
| --- in this derive macro expansion
...
2018-08-08 12:28:26 +00:00
LL | e: RangeInclusive<usize>,
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeInclusive<usize>`
2018-08-08 12:28:26 +00:00
|
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
error[E0277]: the trait bound `std::ops::RangeToInclusive<usize>: Ord` is not satisfied
2021-02-09 00:00:00 +00:00
--> $DIR/range_traits-1.rs:20:5
2018-08-08 12:28:26 +00:00
|
LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
| --- in this derive macro expansion
...
2018-08-08 12:28:26 +00:00
LL | f: RangeToInclusive<usize>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeToInclusive<usize>`
2018-08-08 12:28:26 +00:00
|
= note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
2018-08-08 12:28:26 +00:00
2021-02-09 00:00:00 +00:00
error: aborting due to 12 previous errors
2018-08-08 12:28:26 +00:00
For more information about this error, try `rustc --explain E0277`.