]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: manual implementation of an assign operation |
2 | --> $DIR/string_add.rs:13:9 | |
3 | | | |
4 | LL | x = x + "."; | |
5 | | ^^^^^^^^^^^ help: replace it with: `x += "."` | |
6 | | | |
7 | = note: `-D clippy::assign-op-pattern` implied by `-D warnings` | |
8 | ||
9 | error: you added something to a string. Consider using `String::push_str()` instead | |
10 | --> $DIR/string_add.rs:13:13 | |
11 | | | |
12 | LL | x = x + "."; | |
13 | | ^^^^^^^ | |
14 | | | |
15 | = note: `-D clippy::string-add` implied by `-D warnings` | |
16 | ||
17 | error: you added something to a string. Consider using `String::push_str()` instead | |
18 | --> $DIR/string_add.rs:17:13 | |
19 | | | |
20 | LL | let z = y + "..."; | |
21 | | ^^^^^^^^^ | |
22 | ||
23 | error: manual implementation of an assign operation | |
24 | --> $DIR/string_add.rs:22:5 | |
25 | | | |
26 | LL | x = x + 1; | |
27 | | ^^^^^^^^^ help: replace it with: `x += 1` | |
28 | ||
29 | error: aborting due to 4 previous errors | |
30 |