2017-10-10 04:56:49 +00:00
|
|
|
error: calling `.extend(_.chars())`
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/string_extend.rs:18:5
|
2017-10-10 04:56:49 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | s.extend(abc.chars());
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(abc)`
|
2017-10-10 04:56:49 +00:00
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::string-extend-chars` implied by `-D warnings`
|
2017-10-10 04:56:49 +00:00
|
|
|
|
|
|
|
error: calling `.extend(_.chars())`
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/string_extend.rs:21:5
|
2017-10-10 04:56:49 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | s.extend("abc".chars());
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str("abc")`
|
2017-10-10 04:56:49 +00:00
|
|
|
|
|
|
|
error: calling `.extend(_.chars())`
|
2019-01-07 21:33:18 +00:00
|
|
|
--> $DIR/string_extend.rs:24:5
|
2017-10-10 04:56:49 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | s.extend(def.chars());
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(&def)`
|
2017-10-10 04:56:49 +00:00
|
|
|
|
2022-10-28 15:22:40 +00:00
|
|
|
error: calling `.extend(_.chars())`
|
|
|
|
--> $DIR/string_extend.rs:34:5
|
|
|
|
|
|
|
|
|
LL | s.extend(abc[0..2].chars());
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(&abc[0..2])`
|
2022-10-28 15:22:40 +00:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|