]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/unnecessary_join.stderr
Rollup merge of #102625 - Rageking8:fix-backtrace-small-typo, r=m-ou-se
[rust.git] / src / tools / clippy / tests / ui / unnecessary_join.stderr
1 error: called `.collect<Vec<String>>().join("")` on an iterator
2   --> $DIR/unnecessary_join.rs:11:10
3    |
4 LL |           .collect::<Vec<String>>()
5    |  __________^
6 LL | |         .join("");
7    | |_________________^ help: try using: `collect::<String>()`
8    |
9    = note: `-D clippy::unnecessary-join` implied by `-D warnings`
10
11 error: called `.collect<Vec<String>>().join("")` on an iterator
12   --> $DIR/unnecessary_join.rs:20:10
13    |
14 LL |           .collect::<Vec<_>>()
15    |  __________^
16 LL | |         .join("");
17    | |_________________^ help: try using: `collect::<String>()`
18
19 error: aborting due to 2 previous errors
20