]> git.lizzy.rs Git - rust.git/blob - tests/ui/strings.stderr
Auto merge of #4478 - tsurai:master, r=flip1995
[rust.git] / tests / ui / strings.stderr
1 error: manual implementation of an assign operation
2   --> $DIR/strings.rs:8: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/strings.rs:8: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/strings.rs:12:13
19    |
20 LL |     let z = y + "...";
21    |             ^^^^^^^^^
22
23 error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead
24   --> $DIR/strings.rs:22:9
25    |
26 LL |         x = x + ".";
27    |         ^^^^^^^^^^^
28    |
29    = note: `-D clippy::string-add-assign` implied by `-D warnings`
30
31 error: manual implementation of an assign operation
32   --> $DIR/strings.rs:22:9
33    |
34 LL |         x = x + ".";
35    |         ^^^^^^^^^^^ help: replace it with: `x += "."`
36
37 error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead
38   --> $DIR/strings.rs:36:9
39    |
40 LL |         x = x + ".";
41    |         ^^^^^^^^^^^
42
43 error: manual implementation of an assign operation
44   --> $DIR/strings.rs:36:9
45    |
46 LL |         x = x + ".";
47    |         ^^^^^^^^^^^ help: replace it with: `x += "."`
48
49 error: you added something to a string. Consider using `String::push_str()` instead
50   --> $DIR/strings.rs:40:13
51    |
52 LL |     let z = y + "...";
53    |             ^^^^^^^^^
54
55 error: aborting due to 8 previous errors
56