summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/neg_cmp_op_on_partial_ord.stderr
blob: c78560007217df78dd4f78a65810cb4956cabfef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
error: the use of negated comparison operators on partially ordered types produces code that is hard to read and refactor, please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable
  --> $DIR/neg_cmp_op_on_partial_ord.rs:16:21
   |
LL |     let _not_less = !(a_value < another_value);
   |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `-D clippy::neg-cmp-op-on-partial-ord` implied by `-D warnings`

error: the use of negated comparison operators on partially ordered types produces code that is hard to read and refactor, please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable
  --> $DIR/neg_cmp_op_on_partial_ord.rs:19:30
   |
LL |     let _not_less_or_equal = !(a_value <= another_value);
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the use of negated comparison operators on partially ordered types produces code that is hard to read and refactor, please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable
  --> $DIR/neg_cmp_op_on_partial_ord.rs:22:24
   |
LL |     let _not_greater = !(a_value > another_value);
   |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: the use of negated comparison operators on partially ordered types produces code that is hard to read and refactor, please consider using the `partial_cmp` method instead, to make it clear that the two values could be incomparable
  --> $DIR/neg_cmp_op_on_partial_ord.rs:25:33
   |
LL |     let _not_greater_or_equal = !(a_value >= another_value);
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 4 previous errors