2017-06-10 21:34:47 -05:00
|
|
|
error: manual implementation of an assign operation
|
|
|
|
--> strings.rs:10:9
|
|
|
|
|
|
|
|
|
10 | x = x + ".";
|
|
|
|
| ^^^^^^^^^^^ help: replace it with `x += "."`
|
|
|
|
|
|
|
|
|
= note: `-D assign-op-pattern` implied by `-D warnings`
|
|
|
|
|
2017-02-07 14:05:30 -06:00
|
|
|
error: you added something to a string. Consider using `String::push_str()` instead
|
2017-05-17 10:51:35 -05:00
|
|
|
--> strings.rs:10:13
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
10 | x = x + ".";
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
= note: `-D string-add` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: you added something to a string. Consider using `String::push_str()` instead
|
2017-05-17 10:51:35 -05:00
|
|
|
--> strings.rs:14:13
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
14 | let z = y + "...";
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^
|
2017-05-17 07:19:44 -05:00
|
|
|
|
|
|
|
|
= note: `-D string-add` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead
|
2017-05-17 10:51:35 -05:00
|
|
|
--> strings.rs:24:9
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
24 | x = x + ".";
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
= note: `-D string-add-assign` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-06-10 21:34:47 -05:00
|
|
|
error: manual implementation of an assign operation
|
|
|
|
--> strings.rs:24:9
|
|
|
|
|
|
|
|
|
24 | x = x + ".";
|
|
|
|
| ^^^^^^^^^^^ help: replace it with `x += "."`
|
|
|
|
|
|
|
|
|
= note: `-D assign-op-pattern` implied by `-D warnings`
|
|
|
|
|
2017-02-07 14:05:30 -06:00
|
|
|
error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead
|
2017-05-17 10:51:35 -05:00
|
|
|
--> strings.rs:38:9
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
38 | x = x + ".";
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
= note: `-D string-add-assign` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-06-10 21:34:47 -05:00
|
|
|
error: manual implementation of an assign operation
|
|
|
|
--> strings.rs:38:9
|
|
|
|
|
|
|
|
|
38 | x = x + ".";
|
|
|
|
| ^^^^^^^^^^^ help: replace it with `x += "."`
|
|
|
|
|
|
|
|
|
= note: `-D assign-op-pattern` implied by `-D warnings`
|
|
|
|
|
2017-02-07 14:05:30 -06:00
|
|
|
error: you added something to a string. Consider using `String::push_str()` instead
|
2017-05-17 10:51:35 -05:00
|
|
|
--> strings.rs:42:13
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-02-08 07:58:07 -06:00
|
|
|
42 | let z = y + "...";
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
= note: `-D string-add` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
error: calling `as_bytes()` on a string literal
|
2017-05-17 10:51:35 -05:00
|
|
|
--> strings.rs:50:14
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
50 | let bs = "hello there".as_bytes();
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead `b"hello there"`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
= note: `-D string-lit-as-bytes` implied by `-D warnings`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
error: manual implementation of an assign operation
|
2017-05-17 10:51:35 -05:00
|
|
|
--> strings.rs:65:7
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-11 09:47:31 -05:00
|
|
|
65 | ; x = x + 1;
|
2017-05-03 05:51:47 -05:00
|
|
|
| ^^^^^^^^^ help: replace it with `x += 1`
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
= note: `-D assign-op-pattern` implied by `-D warnings`
|
|
|
|
|
2017-05-26 02:21:54 -05:00
|
|
|
error: aborting due to previous error(s)
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
error: Could not compile `clippy_tests`.
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2017-05-17 07:19:44 -05:00
|
|
|
To learn more, run the command again with --verbose.
|