]> git.lizzy.rs Git - rust.git/blob - tests/ui/strings.stderr
Auto merge of #3635 - matthiaskrgr:revert_random_state_3603, r=xfix
[rust.git] / tests / ui / strings.stderr
1 error: manual implementation of an assign operation
2   --> $DIR/strings.rs:17: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:17: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:21: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:31: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:31: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:45:9
39    |
40 LL |         x = x + ".";
41    |         ^^^^^^^^^^^
42
43 error: manual implementation of an assign operation
44   --> $DIR/strings.rs:45: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:49:13
51    |
52 LL |     let z = y + "...";
53    |             ^^^^^^^^^
54
55 error: calling `as_bytes()` on a string literal
56   --> $DIR/strings.rs:57:14
57    |
58 LL |     let bs = "hello there".as_bytes();
59    |              ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"hello there"`
60    |
61    = note: `-D clippy::string-lit-as-bytes` implied by `-D warnings`
62
63 error: calling `as_bytes()` on a string literal
64   --> $DIR/strings.rs:59:14
65    |
66 LL |     let bs = r###"raw string with three ### in it and some " ""###.as_bytes();
67    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `br###"raw string with three ### in it and some " ""###`
68
69 error: calling `as_bytes()` on `include_str!(..)`
70   --> $DIR/strings.rs:66:22
71    |
72 LL |     let includestr = include_str!("entry.rs").as_bytes();
73    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `include_bytes!(..)` instead: `include_bytes!("entry.rs")`
74
75 error: aborting due to 11 previous errors
76