]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/string_add.stderr
Auto merge of #70655 - oli-obk:subrepo_funness, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / tests / ui / string_add.stderr
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