]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/strings.stderr
2b0e4dcdf1b34ffd951de509b7735579d6db9504
[rust.git] / clippy_tests / examples / strings.stderr
1 error: manual implementation of an assign operation
2   --> strings.rs:10:9
3    |
4 10 |         x = x + ".";
5    |         ^^^^^^^^^^^ help: replace it with `x += "."`
6    |
7    = note: `-D assign-op-pattern` implied by `-D warnings`
8
9 error: you added something to a string. Consider using `String::push_str()` instead
10   --> strings.rs:10:13
11    |
12 10 |         x = x + ".";
13    |             ^^^^^^^
14    |
15    = note: `-D string-add` implied by `-D warnings`
16
17 error: you added something to a string. Consider using `String::push_str()` instead
18   --> strings.rs:14:13
19    |
20 14 |     let z = y + "...";
21    |             ^^^^^^^^^
22    |
23    = note: `-D string-add` implied by `-D warnings`
24
25 error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead
26   --> strings.rs:24:9
27    |
28 24 |         x = x + ".";
29    |         ^^^^^^^^^^^
30    |
31    = note: `-D string-add-assign` implied by `-D warnings`
32
33 error: manual implementation of an assign operation
34   --> strings.rs:24:9
35    |
36 24 |         x = x + ".";
37    |         ^^^^^^^^^^^ help: replace it with `x += "."`
38    |
39    = note: `-D assign-op-pattern` implied by `-D warnings`
40
41 error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead
42   --> strings.rs:38:9
43    |
44 38 |         x = x + ".";
45    |         ^^^^^^^^^^^
46    |
47    = note: `-D string-add-assign` implied by `-D warnings`
48
49 error: manual implementation of an assign operation
50   --> strings.rs:38:9
51    |
52 38 |         x = x + ".";
53    |         ^^^^^^^^^^^ help: replace it with `x += "."`
54    |
55    = note: `-D assign-op-pattern` implied by `-D warnings`
56
57 error: you added something to a string. Consider using `String::push_str()` instead
58   --> strings.rs:42:13
59    |
60 42 |     let z = y + "...";
61    |             ^^^^^^^^^
62    |
63    = note: `-D string-add` implied by `-D warnings`
64
65 error: calling `as_bytes()` on a string literal
66   --> strings.rs:50:14
67    |
68 50 |     let bs = "hello there".as_bytes();
69    |              ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead `b"hello there"`
70    |
71    = note: `-D string-lit-as-bytes` implied by `-D warnings`
72
73 error: manual implementation of an assign operation
74   --> strings.rs:65:7
75    |
76 65 |     ; x = x + 1;
77    |       ^^^^^^^^^ help: replace it with `x += 1`
78    |
79    = note: `-D assign-op-pattern` implied by `-D warnings`
80
81 error: aborting due to previous error(s)
82
83 error: Could not compile `clippy_tests`.
84
85 To learn more, run the command again with --verbose.