rust/tests/ui/string_extend.stderr

23 lines
639 B
Plaintext
Raw Normal View History

2017-10-10 06:56:49 +02:00
error: calling `.extend(_.chars())`
2018-12-10 06:27:19 +01:00
--> $DIR/string_extend.rs:25:5
2017-10-10 06:56:49 +02:00
|
2018-12-10 06:27:19 +01:00
25 | s.extend(abc.chars());
2017-10-10 06:56:49 +02:00
| ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(abc)`
|
= note: `-D clippy::string-extend-chars` implied by `-D warnings`
2017-10-10 06:56:49 +02:00
error: calling `.extend(_.chars())`
2018-12-10 06:27:19 +01:00
--> $DIR/string_extend.rs:28:5
2017-10-10 06:56:49 +02:00
|
2018-12-10 06:27:19 +01:00
28 | s.extend("abc".chars());
2017-10-10 06:56:49 +02:00
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str("abc")`
error: calling `.extend(_.chars())`
2018-12-10 06:27:19 +01:00
--> $DIR/string_extend.rs:31:5
2017-10-10 06:56:49 +02:00
|
2018-12-10 06:27:19 +01:00
31 | s.extend(def.chars());
2017-10-10 06:56:49 +02:00
| ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(&def)`
2018-01-16 17:06:27 +01:00
error: aborting due to 3 previous errors