1 error: this creates an owned instance just for comparison
2 --> $DIR/without_suggestion.rs:7:5
4 LL | y.to_owned() == *x;
5 | ^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating
7 = note: `-D clippy::cmp-owned` implied by `-D warnings`
9 error: this creates an owned instance just for comparison
10 --> $DIR/without_suggestion.rs:11:5
12 LL | y.to_owned() == **x;
13 | ^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating
15 error: this creates an owned instance just for comparison
16 --> $DIR/without_suggestion.rs:18:9
18 LL | self.to_owned() == *other
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating
21 error: aborting due to 3 previous errors