1 error: manual implementation of `str::repeat` using iterators
2 --> $DIR/manual_str_repeat.rs:9:21
4 LL | let _: String = std::iter::repeat("test").take(10).collect();
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"test".repeat(10)`
7 = note: `-D clippy::manual-str-repeat` implied by `-D warnings`
9 error: manual implementation of `str::repeat` using iterators
10 --> $DIR/manual_str_repeat.rs:10:21
12 LL | let _: String = std::iter::repeat('x').take(10).collect();
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"x".repeat(10)`
15 error: manual implementation of `str::repeat` using iterators
16 --> $DIR/manual_str_repeat.rs:11:21
18 LL | let _: String = std::iter::repeat('/'').take(10).collect();
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"'".repeat(10)`
21 error: manual implementation of `str::repeat` using iterators
22 --> $DIR/manual_str_repeat.rs:12:21
24 LL | let _: String = std::iter::repeat('"').take(10).collect();
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"/"".repeat(10)`
27 error: manual implementation of `str::repeat` using iterators
28 --> $DIR/manual_str_repeat.rs:16:13
30 LL | let _ = repeat(x).take(count + 2).collect::<String>();
31 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `x.repeat(count + 2)`
33 error: manual implementation of `str::repeat` using iterators
34 --> $DIR/manual_str_repeat.rs:25:21
36 LL | let _: String = repeat(*x).take(count).collect();
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(*x).repeat(count)`
39 error: manual implementation of `str::repeat` using iterators
40 --> $DIR/manual_str_repeat.rs:34:21
42 LL | let _: String = repeat(x).take(count).collect();
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `x.repeat(count)`
45 error: manual implementation of `str::repeat` using iterators
46 --> $DIR/manual_str_repeat.rs:46:21
48 LL | let _: String = repeat(Cow::Borrowed("test")).take(count).collect();
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Cow::Borrowed("test").repeat(count)`
51 error: manual implementation of `str::repeat` using iterators
52 --> $DIR/manual_str_repeat.rs:49:21
54 LL | let _: String = repeat(x).take(count).collect();
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `x.repeat(count)`
57 error: manual implementation of `str::repeat` using iterators
58 --> $DIR/manual_str_repeat.rs:64:21
60 LL | let _: String = std::iter::repeat("test").take(10).collect();
61 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `"test".repeat(10)`
63 error: aborting due to 10 previous errors