rust/tests/ui/string_extend.stderr

29 lines
830 B
Plaintext
Raw Normal View History

2017-10-09 23:56:49 -05:00
error: calling `.extend(_.chars())`
--> $DIR/string_extend.rs:18:5
2017-10-09 23:56:49 -05:00
|
2018-12-27 09:57:55 -06:00
LL | s.extend(abc.chars());
2017-10-09 23:56:49 -05:00
| ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(abc)`
|
= note: `-D clippy::string-extend-chars` implied by `-D warnings`
2017-10-09 23:56:49 -05:00
error: calling `.extend(_.chars())`
--> $DIR/string_extend.rs:21:5
2017-10-09 23:56:49 -05:00
|
2018-12-27 09:57:55 -06:00
LL | s.extend("abc".chars());
2017-10-09 23:56:49 -05:00
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str("abc")`
error: calling `.extend(_.chars())`
--> $DIR/string_extend.rs:24:5
2017-10-09 23:56:49 -05:00
|
2018-12-27 09:57:55 -06:00
LL | s.extend(def.chars());
2017-10-09 23:56:49 -05:00
| ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(&def)`
error: calling `.extend(_.chars())`
--> $DIR/string_extend.rs:34:5
|
LL | s.extend(abc[0..2].chars());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(&abc[0..2])`
error: aborting due to 4 previous errors
2018-01-16 10:06:27 -06:00