blob: 7d37c98a8f93023c9928f9c4e8848184ca993599 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead
--> $DIR/string_add_assign.rs:8:9
|
LL | x = x + ".";
| ^^^^^^^^^^^
|
= note: `-D clippy::string-add-assign` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::string_add_assign)]`
error: manual implementation of an assign operation
--> $DIR/string_add_assign.rs:8:9
|
LL | x = x + ".";
| ^^^^^^^^^^^ help: replace it with: `x += "."`
|
= note: `-D clippy::assign-op-pattern` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::assign_op_pattern)]`
error: manual implementation of an assign operation
--> $DIR/string_add_assign.rs:17:5
|
LL | x = x + 1;
| ^^^^^^^^^ help: replace it with: `x += 1`
error: aborting due to 3 previous errors
|