2017-05-11 18:59:36 +02:00
|
|
|
error: this creates an owned instance just for comparison
|
2019-08-24 09:23:06 +02:00
|
|
|
--> $DIR/with_suggestion.rs:7:14
|
2018-10-06 18:18:06 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | x != "foo".to_string();
|
2018-10-06 18:18:06 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try: `"foo"`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::cmp-owned` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-05-11 18:59:36 +02:00
|
|
|
error: this creates an owned instance just for comparison
|
2019-08-24 09:23:06 +02:00
|
|
|
--> $DIR/with_suggestion.rs:9:9
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | "foo".to_string() != x;
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try: `"foo"`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-05-11 18:59:36 +02:00
|
|
|
error: this creates an owned instance just for comparison
|
2019-08-24 09:23:06 +02:00
|
|
|
--> $DIR/with_suggestion.rs:16:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | x != "foo".to_owned();
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try: `"foo"`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-05-11 18:59:36 +02:00
|
|
|
error: this creates an owned instance just for comparison
|
2019-08-24 09:23:06 +02:00
|
|
|
--> $DIR/with_suggestion.rs:18:10
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | x != String::from("foo");
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: try: `"foo"`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-05-11 18:59:36 +02:00
|
|
|
error: this creates an owned instance just for comparison
|
2019-08-24 09:23:06 +02:00
|
|
|
--> $DIR/with_suggestion.rs:22:5
|
2017-05-11 18:59:36 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | Foo.to_owned() == Foo;
|
2017-07-21 10:40:23 +02:00
|
|
|
| ^^^^^^^^^^^^^^ help: try: `Foo`
|
2017-05-11 18:59:36 +02:00
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
error: this creates an owned instance just for comparison
|
2019-08-24 09:23:06 +02:00
|
|
|
--> $DIR/with_suggestion.rs:24:30
|
2017-05-11 18:59:36 +02:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | "abc".chars().filter(|c| c.to_owned() != 'X');
|
2018-10-09 04:04:29 +02:00
|
|
|
| ^^^^^^^^^^^^ help: try: `*c`
|
|
|
|
|
2019-08-24 09:23:06 +02:00
|
|
|
error: aborting due to 6 previous errors
|
2018-01-16 17:06:27 +01:00
|
|
|
|