]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/cmp_owned/with_suggestion.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / cmp_owned / with_suggestion.stderr
CommitLineData
f20569fa
XL
1error: this creates an owned instance just for comparison
2 --> $DIR/with_suggestion.rs:7:14
3 |
4LL | x != "foo".to_string();
5 | ^^^^^^^^^^^^^^^^^ help: try: `"foo"`
6 |
7 = note: `-D clippy::cmp-owned` implied by `-D warnings`
8
9error: this creates an owned instance just for comparison
10 --> $DIR/with_suggestion.rs:9:9
11 |
12LL | "foo".to_string() != x;
13 | ^^^^^^^^^^^^^^^^^ help: try: `"foo"`
14
15error: this creates an owned instance just for comparison
16 --> $DIR/with_suggestion.rs:16:10
17 |
18LL | x != "foo".to_owned();
19 | ^^^^^^^^^^^^^^^^ help: try: `"foo"`
20
21error: this creates an owned instance just for comparison
22 --> $DIR/with_suggestion.rs:18:10
23 |
24LL | x != String::from("foo");
25 | ^^^^^^^^^^^^^^^^^^^ help: try: `"foo"`
26
27error: this creates an owned instance just for comparison
28 --> $DIR/with_suggestion.rs:22:5
29 |
30LL | Foo.to_owned() == Foo;
31 | ^^^^^^^^^^^^^^ help: try: `Foo`
32
33error: this creates an owned instance just for comparison
34 --> $DIR/with_suggestion.rs:24:30
35 |
36LL | "abc".chars().filter(|c| c.to_owned() != 'X');
37 | ^^^^^^^^^^^^ help: try: `*c`
38
39error: aborting due to 6 previous errors
40