2019-09-25 12:33:48 -05:00
|
|
|
error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/string_add_assign.rs:8:9
|
2019-09-25 12:33:48 -05:00
|
|
|
|
|
|
|
|
LL | x = x + ".";
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::string-add-assign` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::string_add_assign)]`
|
2019-09-25 12:33:48 -05:00
|
|
|
|
|
|
|
error: manual implementation of an assign operation
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/string_add_assign.rs:8: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`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::assign_op_pattern)]`
|
2019-09-25 12:33:48 -05:00
|
|
|
|
|
|
|
error: manual implementation of an assign operation
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/string_add_assign.rs:17:5
|
2019-09-25 12:33:48 -05:00
|
|
|
|
|
|
|
|
LL | x = x + 1;
|
|
|
|
| ^^^^^^^^^ help: replace it with: `x += 1`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|