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