]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/cmp_owned/without_suggestion.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / cmp_owned / without_suggestion.stderr
CommitLineData
f20569fa
XL
1error: this creates an owned instance just for comparison
2 --> $DIR/without_suggestion.rs:7:5
3 |
4LL | y.to_owned() == *x;
5 | ^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating
6 |
7 = note: `-D clippy::cmp-owned` implied by `-D warnings`
8
9error: this creates an owned instance just for comparison
10 --> $DIR/without_suggestion.rs:11:5
11 |
12LL | y.to_owned() == **x;
13 | ^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating
14
15error: this creates an owned instance just for comparison
16 --> $DIR/without_suggestion.rs:18:9
17 |
18LL | self.to_owned() == *other
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^ try implementing the comparison without allocating
20
21error: aborting due to 3 previous errors
22