2019-09-25 12:33:48 -05:00
|
|
|
error: manual implementation of an assign operation
|
2019-12-05 04:06:13 -06:00
|
|
|
--> $DIR/string_add.rs:13:9
|
2019-09-25 12:33:48 -05:00
|
|
|
|
|
|
|
|
LL | x = x + ".";
|
|
|
|
| ^^^^^^^^^^^ help: replace it with: `x += "."`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::assign-op-pattern` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: you added something to a string. Consider using `String::push_str()` instead
|
2019-12-05 04:06:13 -06:00
|
|
|
--> $DIR/string_add.rs:13:13
|
2019-09-25 12:33:48 -05:00
|
|
|
|
|
|
|
|
LL | x = x + ".";
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::string-add` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: you added something to a string. Consider using `String::push_str()` instead
|
2019-12-05 04:06:13 -06:00
|
|
|
--> $DIR/string_add.rs:17:13
|
2019-09-25 12:33:48 -05:00
|
|
|
|
|
|
|
|
LL | let z = y + "...";
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: manual implementation of an assign operation
|
2019-12-05 04:06:13 -06:00
|
|
|
--> $DIR/string_add.rs:22:5
|
2019-09-25 12:33:48 -05:00
|
|
|
|
|
|
|
|
LL | x = x + 1;
|
|
|
|
| ^^^^^^^^^ help: replace it with: `x += 1`
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|