]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/string_extend.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / string_extend.stderr
CommitLineData
f20569fa
XL
1error: calling `.extend(_.chars())`
2 --> $DIR/string_extend.rs:18:5
3 |
4LL | 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
9error: calling `.extend(_.chars())`
10 --> $DIR/string_extend.rs:21:5
11 |
12LL | s.extend("abc".chars());
13 | ^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str("abc")`
14
15error: calling `.extend(_.chars())`
16 --> $DIR/string_extend.rs:24:5
17 |
18LL | s.extend(def.chars());
19 | ^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(&def)`
20
487cf647
FG
21error: calling `.extend(_.chars())`
22 --> $DIR/string_extend.rs:34:5
23 |
24LL | s.extend(abc[0..2].chars());
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `s.push_str(&abc[0..2])`
26
27error: aborting due to 4 previous errors
f20569fa 28