]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: calling `.extend(_.chars())` |
2 | --> $DIR/string_extend.rs:18:5 | |
3 | | | |
4 | LL | s.extend(abc.chars()); | |
5 | | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(abc)` | |
6 | | | |
7 | = note: `-D clippy::string-extend-chars` implied by `-D warnings` | |
8 | ||
9 | error: calling `.extend(_.chars())` | |
10 | --> $DIR/string_extend.rs:21:5 | |
11 | | | |
12 | LL | s.extend("abc".chars()); | |
13 | | ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str("abc")` | |
14 | ||
15 | error: calling `.extend(_.chars())` | |
16 | --> $DIR/string_extend.rs:24:5 | |
17 | | | |
18 | LL | s.extend(def.chars()); | |
19 | | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(&def)` | |
20 | ||
487cf647 FG |
21 | error: calling `.extend(_.chars())` |
22 | --> $DIR/string_extend.rs:34:5 | |
23 | | | |
24 | LL | s.extend(abc[0..2].chars()); | |
25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(&abc[0..2])` | |
26 | ||
27 | error: aborting due to 4 previous errors | |
f20569fa | 28 |