2017-05-11 16:59:36 +00:00
|
|
|
error: this creates an owned instance just for comparison
|
2017-05-17 15:51:35 +00:00
|
|
|
--> cmp_owned.rs:8:14
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
8 | x != "foo".to_string();
|
2017-05-11 16:59:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try `"foo"`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D cmp-owned` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-05-11 16:59:36 +00:00
|
|
|
error: this creates an owned instance just for comparison
|
2017-05-17 15:51:35 +00:00
|
|
|
--> cmp_owned.rs:10:9
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 09:41:44 +00:00
|
|
|
10 | "foo".to_string() != x;
|
2017-05-11 16:59:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^ help: try `"foo"`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-05-11 16:59:36 +00:00
|
|
|
error: this creates an owned instance just for comparison
|
2017-05-17 15:51:35 +00:00
|
|
|
--> cmp_owned.rs:17:10
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 09:41:44 +00:00
|
|
|
17 | x != "foo".to_owned();
|
2017-05-11 16:59:36 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try `"foo"`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-05-11 16:59:36 +00:00
|
|
|
error: this creates an owned instance just for comparison
|
2017-05-17 15:51:35 +00:00
|
|
|
--> cmp_owned.rs:19:10
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-05-11 16:59:36 +00:00
|
|
|
19 | x != String::from("foo");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: try `"foo"`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-05-11 16:59:36 +00:00
|
|
|
error: this creates an owned instance just for comparison
|
2017-05-17 15:51:35 +00:00
|
|
|
--> cmp_owned.rs:23:5
|
2017-05-11 16:59:36 +00:00
|
|
|
|
|
|
|
|
23 | Foo.to_owned() == Foo;
|
|
|
|
| ^^^^^^^^^^^^^^ help: try `Foo`
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
error: this creates an owned instance just for comparison
|
2017-05-17 15:51:35 +00:00
|
|
|
--> cmp_owned.rs:30:9
|
2017-05-11 16:59:36 +00:00
|
|
|
|
|
|
|
|
30 | self.to_owned() == *other
|
|
|
|
| ^^^^^^^^^^^^^^^ try calling implementing the comparison without allocating
|
2017-05-17 12:19:44 +00:00
|
|
|
|
2017-07-03 04:37:30 +00:00
|
|
|
error: aborting due to 6 previous errors
|
2017-05-11 16:59:36 +00:00
|
|
|
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
To learn more, run the command again with --verbose.
|