rust-clippy/tests/ui/strings.stderr

57 lines
1.6 KiB
Text
Raw Normal View History

error: manual implementation of an assign operation
--> $DIR/strings.rs:8:9
|
2018-12-27 15:57:55 +00:00
LL | x = x + ".";
2017-07-21 08:40:23 +00:00
| ^^^^^^^^^^^ 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
--> $DIR/strings.rs:8:13
|
2018-12-27 15:57:55 +00: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
--> $DIR/strings.rs:12:13
|
2018-12-27 15:57:55 +00:00
LL | let z = y + "...";
| ^^^^^^^^^
error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead
--> $DIR/strings.rs:22:9
|
2018-12-27 15:57:55 +00:00
LL | x = x + ".";
| ^^^^^^^^^^^
|
= note: `-D clippy::string-add-assign` implied by `-D warnings`
error: manual implementation of an assign operation
--> $DIR/strings.rs:22:9
|
2018-12-27 15:57:55 +00:00
LL | x = x + ".";
2017-07-21 08:40:23 +00:00
| ^^^^^^^^^^^ help: replace it with: `x += "."`
error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead
--> $DIR/strings.rs:36:9
|
2018-12-27 15:57:55 +00:00
LL | x = x + ".";
| ^^^^^^^^^^^
error: manual implementation of an assign operation
--> $DIR/strings.rs:36:9
|
2018-12-27 15:57:55 +00:00
LL | x = x + ".";
2017-07-21 08:40:23 +00:00
| ^^^^^^^^^^^ help: replace it with: `x += "."`
error: you added something to a string. Consider using `String::push_str()` instead
--> $DIR/strings.rs:40:13
|
2018-12-27 15:57:55 +00:00
LL | let z = y + "...";
| ^^^^^^^^^
error: aborting due to 8 previous errors
2018-10-26 16:10:20 +00:00