rust-clippy/tests/ui/string_extend.stderr

30 lines
907 B
Text
Raw Normal View History

2017-10-10 04:56:49 +00:00
error: calling `.extend(_.chars())`
--> tests/ui/string_extend.rs:16:5
2017-10-10 04:56:49 +00:00
|
2018-12-27 15:57:55 +00:00
LL | s.extend(abc.chars());
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(abc)`
2017-10-10 04:56:49 +00:00
|
= note: `-D clippy::string-extend-chars` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::string_extend_chars)]`
2017-10-10 04:56:49 +00:00
error: calling `.extend(_.chars())`
--> tests/ui/string_extend.rs:19:5
2017-10-10 04:56:49 +00:00
|
2018-12-27 15:57:55 +00:00
LL | s.extend("abc".chars());
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str("abc")`
2017-10-10 04:56:49 +00:00
error: calling `.extend(_.chars())`
--> tests/ui/string_extend.rs:22:5
2017-10-10 04:56:49 +00:00
|
2018-12-27 15:57:55 +00:00
LL | s.extend(def.chars());
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(&def)`
2017-10-10 04:56:49 +00:00
error: calling `.extend(_.chars())`
--> tests/ui/string_extend.rs:32:5
|
LL | s.extend(abc[0..2].chars());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `s.push_str(&abc[0..2])`
error: aborting due to 4 previous errors
2018-01-16 16:06:27 +00:00