2020-07-14 07:59:59 -05:00
|
|
|
error: this creates an owned instance just for comparison
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/asymmetric_partial_eq.rs:46:12
|
2020-07-14 07:59:59 -05:00
|
|
|
|
|
|
|
|
LL | if borrowed.to_owned() == owned {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: try: `borrowed`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::cmp-owned` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::cmp_owned)]`
|
2020-07-14 07:59:59 -05:00
|
|
|
|
|
|
|
error: this creates an owned instance just for comparison
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/asymmetric_partial_eq.rs:47:21
|
2020-07-14 07:59:59 -05:00
|
|
|
|
|
|
|
|
LL | if owned == borrowed.to_owned() {}
|
|
|
|
| ---------^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: try: `borrowed == owned`
|
|
|
|
|
|
|
|
error: this creates an owned instance just for comparison
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/asymmetric_partial_eq.rs:65:21
|
2020-07-14 07:59:59 -05:00
|
|
|
|
|
|
|
|
LL | if owned == borrowed.to_owned() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: try: `borrowed`
|
|
|
|
|
|
|
|
error: this creates an owned instance just for comparison
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/asymmetric_partial_eq.rs:66:12
|
2020-07-14 07:59:59 -05:00
|
|
|
|
|
|
|
|
LL | if borrowed.to_owned() == owned {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^---------
|
|
|
|
| |
|
|
|
|
| help: try: `owned == borrowed`
|
|
|
|
|
|
|
|
error: this creates an owned instance just for comparison
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/asymmetric_partial_eq.rs:92:20
|
2020-07-14 07:59:59 -05:00
|
|
|
|
|
|
|
|
LL | if "Hi" == borrowed.to_string() {}
|
|
|
|
| --------^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: try: `borrowed == "Hi"`
|
|
|
|
|
|
|
|
error: this creates an owned instance just for comparison
|
2023-08-24 14:32:12 -05:00
|
|
|
--> $DIR/asymmetric_partial_eq.rs:93:12
|
2020-07-14 07:59:59 -05:00
|
|
|
|
|
|
|
|
LL | if borrowed.to_string() == "Hi" {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: try: `borrowed`
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
|
|
|
|