2017-10-09 23:56:49 -05:00
|
|
|
error: calling `.extend(_.chars())`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/string_extend.rs:16:5
|
2017-10-09 23:56:49 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | s.extend(abc.chars());
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(abc)`
|
2017-10-09 23:56:49 -05:00
|
|
|
|
|
2018-08-01 09:30:44 -05:00
|
|
|
= note: `-D clippy::string-extend-chars` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::string_extend_chars)]`
|
2017-10-09 23:56:49 -05:00
|
|
|
|
|
|
|
error: calling `.extend(_.chars())`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/string_extend.rs:19:5
|
2017-10-09 23:56:49 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | s.extend("abc".chars());
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str("abc")`
|
2017-10-09 23:56:49 -05:00
|
|
|
|
|
|
|
error: calling `.extend(_.chars())`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/string_extend.rs:22:5
|
2017-10-09 23:56:49 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | s.extend(def.chars());
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(&def)`
|
2017-10-09 23:56:49 -05:00
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: calling `.extend(_.chars())`
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/string_extend.rs:32:5
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | s.extend(abc[0..2].chars());
|
2023-07-17 03:19:29 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(&abc[0..2])`
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2018-01-16 10:06:27 -06:00
|
|
|
|