]> git.lizzy.rs Git - rust.git/blob - tests/ui/string_extend.stderr
Auto merge of #7847 - mikerite:fix-7829, r=flip1995
[rust.git] / tests / ui / string_extend.stderr
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
21 error: aborting due to 3 previous errors
22