mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
23 lines
639 B
Plaintext
23 lines
639 B
Plaintext
error: calling `.extend(_.chars())`
|
|
--> $DIR/string_extend.rs:26:5
|
|
|
|
|
26 | s.extend(abc.chars());
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(abc)`
|
|
|
|
|
= note: `-D clippy::string-extend-chars` implied by `-D warnings`
|
|
|
|
error: calling `.extend(_.chars())`
|
|
--> $DIR/string_extend.rs:29:5
|
|
|
|
|
29 | s.extend("abc".chars());
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str("abc")`
|
|
|
|
error: calling `.extend(_.chars())`
|
|
--> $DIR/string_extend.rs:32:5
|
|
|
|
|
32 | s.extend(def.chars());
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(&def)`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|