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