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