2017-06-11 04:34:47 +02:00
error: manual implementation of an assign operation
2018-10-06 18:18:06 +02:00
--> $DIR/strings.rs:20:9
2017-06-11 04:34:47 +02:00
|
2018-10-06 18:18:06 +02:00
20 | x = x + ".";
2017-07-21 10:40:23 +02:00
| ^^^^^^^^^^^ help: replace it with: `x += "."`
2017-06-11 04:34:47 +02:00
|
2018-08-01 16:30:44 +02:00
= note: `-D clippy::assign-op-pattern` implied by `-D warnings`
2017-06-11 04:34:47 +02:00
2017-02-07 21:05:30 +01:00
error: you added something to a string. Consider using `String::push_str()` instead
2018-10-06 18:18:06 +02:00
--> $DIR/strings.rs:20:13
2017-02-07 21:05:30 +01:00
|
2018-10-06 18:18:06 +02:00
20 | x = x + ".";
2017-02-07 21:05:30 +01:00
| ^^^^^^^
|
2018-08-01 16:30:44 +02:00
= note: `-D clippy::string-add` implied by `-D warnings`
2017-02-07 21:05:30 +01:00
error: you added something to a string. Consider using `String::push_str()` instead
2018-10-06 18:18:06 +02:00
--> $DIR/strings.rs:24:13
2017-02-07 21:05:30 +01:00
|
2018-10-06 18:18:06 +02:00
24 | let z = y + "...";
2017-02-07 21:05:30 +01:00
| ^^^^^^^^^
error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead
2018-10-06 18:18:06 +02:00
--> $DIR/strings.rs:34:9
2017-02-07 21:05:30 +01:00
|
2018-10-06 18:18:06 +02:00
34 | x = x + ".";
2017-02-07 21:05:30 +01:00
| ^^^^^^^^^^^
|
2018-08-01 16:30:44 +02:00
= note: `-D clippy::string-add-assign` implied by `-D warnings`
2017-02-07 21:05:30 +01:00
2017-06-11 04:34:47 +02:00
error: manual implementation of an assign operation
2018-10-06 18:18:06 +02:00
--> $DIR/strings.rs:34:9
2017-06-11 04:34:47 +02:00
|
2018-10-06 18:18:06 +02:00
34 | x = x + ".";
2017-07-21 10:40:23 +02:00
| ^^^^^^^^^^^ help: replace it with: `x += "."`
2017-06-11 04:34:47 +02:00
2017-02-07 21:05:30 +01:00
error: you assigned the result of adding something to this string. Consider using `String::push_str()` instead
2018-10-06 18:18:06 +02:00
--> $DIR/strings.rs:48:9
2017-02-07 21:05:30 +01:00
|
2018-10-06 18:18:06 +02:00
48 | x = x + ".";
2017-02-07 21:05:30 +01:00
| ^^^^^^^^^^^
2017-06-11 04:34:47 +02:00
error: manual implementation of an assign operation
2018-10-06 18:18:06 +02:00
--> $DIR/strings.rs:48:9
2017-06-11 04:34:47 +02:00
|
2018-10-06 18:18:06 +02:00
48 | x = x + ".";
2017-07-21 10:40:23 +02:00
| ^^^^^^^^^^^ help: replace it with: `x += "."`
2017-06-11 04:34:47 +02:00
2017-02-07 21:05:30 +01:00
error: you added something to a string. Consider using `String::push_str()` instead
2018-10-06 18:18:06 +02:00
--> $DIR/strings.rs:52:13
2017-02-07 21:05:30 +01:00
|
2018-10-06 18:18:06 +02:00
52 | let z = y + "...";
2017-02-07 21:05:30 +01:00
| ^^^^^^^^^
error: calling `as_bytes()` on a string literal
2018-10-06 18:18:06 +02:00
--> $DIR/strings.rs:60:14
2017-02-07 21:05:30 +01:00
|
2018-10-06 18:18:06 +02:00
60 | let bs = "hello there".as_bytes();
2017-07-21 10:40:23 +02:00
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `b"hello there"`
2017-02-07 21:05:30 +01:00
|
2018-08-01 16:30:44 +02:00
= note: `-D clippy::string-lit-as-bytes` implied by `-D warnings`
2017-02-07 21:05:30 +01:00
2018-10-26 18:10:20 +02:00
error: calling `as_bytes()` on a string literal
--> $DIR/strings.rs:62:14
|
62 | let bs = r###"raw string with three ### in it and some " ""###.as_bytes();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a byte string literal instead: `br###"raw string with three ### in it and some " ""###`
error: calling `as_bytes()` on `include_str!(..)`
--> $DIR/strings.rs:69:22
|
69 | let includestr = include_str!("entry.rs").as_bytes();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `include_bytes!(..)` instead: `include_bytes!("entry.rs")`
error: aborting due to 11 previous errors