|
1 | 1 | error: manual implementation of `str::repeat` using iterators
|
2 |
| - --> $DIR/manual_str_repeat.rs:8:21 |
| 2 | + --> $DIR/manual_str_repeat.rs:9:21 |
3 | 3 | |
|
4 | 4 | LL | let _: String = std::iter::repeat("test").take(10).collect();
|
5 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `"test".repeat(10)`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::manual-str-repeat` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: manual implementation of `str::repeat` using iterators
|
10 |
| - --> $DIR/manual_str_repeat.rs:9:21 |
| 10 | + --> $DIR/manual_str_repeat.rs:10:21 |
11 | 11 | |
|
12 | 12 | LL | let _: String = std::iter::repeat('x').take(10).collect();
|
13 | 13 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `"x".repeat(10)`
|
14 | 14 |
|
15 | 15 | error: manual implementation of `str::repeat` using iterators
|
16 |
| - --> $DIR/manual_str_repeat.rs:10:21 |
| 16 | + --> $DIR/manual_str_repeat.rs:11:21 |
17 | 17 | |
|
18 | 18 | LL | let _: String = std::iter::repeat('/'').take(10).collect();
|
19 | 19 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `"'".repeat(10)`
|
20 | 20 |
|
21 | 21 | error: manual implementation of `str::repeat` using iterators
|
22 |
| - --> $DIR/manual_str_repeat.rs:11:21 |
| 22 | + --> $DIR/manual_str_repeat.rs:12:21 |
23 | 23 | |
|
24 | 24 | LL | let _: String = std::iter::repeat('"').take(10).collect();
|
25 | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `"/"".repeat(10)`
|
26 | 26 |
|
27 | 27 | error: manual implementation of `str::repeat` using iterators
|
28 |
| - --> $DIR/manual_str_repeat.rs:15:13 |
| 28 | + --> $DIR/manual_str_repeat.rs:16:13 |
29 | 29 | |
|
30 | 30 | LL | let _ = repeat(x).take(count + 2).collect::<String>();
|
31 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `x.repeat(count + 2)`
|
32 | 32 |
|
33 | 33 | error: manual implementation of `str::repeat` using iterators
|
34 |
| - --> $DIR/manual_str_repeat.rs:21:21 |
| 34 | + --> $DIR/manual_str_repeat.rs:22:21 |
35 | 35 | |
|
36 | 36 | LL | let _: String = repeat(m!("test")).take(m!(count)).collect();
|
37 | 37 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `m!("test").repeat(m!(count))`
|
38 | 38 |
|
39 | 39 | error: manual implementation of `str::repeat` using iterators
|
40 |
| - --> $DIR/manual_str_repeat.rs:24:21 |
| 40 | + --> $DIR/manual_str_repeat.rs:25:21 |
41 | 41 | |
|
42 | 42 | LL | let _: String = repeat(*x).take(count).collect();
|
43 | 43 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `(*x).repeat(count)`
|
44 | 44 |
|
45 |
| -error: aborting due to 7 previous errors |
| 45 | +error: manual implementation of `str::repeat` using iterators |
| 46 | + --> $DIR/manual_str_repeat.rs:34:21 |
| 47 | + | |
| 48 | +LL | let _: String = repeat(x).take(count).collect(); |
| 49 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `x.repeat(count)` |
| 50 | + |
| 51 | +error: manual implementation of `str::repeat` using iterators |
| 52 | + --> $DIR/manual_str_repeat.rs:46:21 |
| 53 | + | |
| 54 | +LL | let _: String = repeat(Cow::Borrowed("test")).take(count).collect(); |
| 55 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `Cow::Borrowed("test").repeat(count)` |
| 56 | + |
| 57 | +error: manual implementation of `str::repeat` using iterators |
| 58 | + --> $DIR/manual_str_repeat.rs:49:21 |
| 59 | + | |
| 60 | +LL | let _: String = repeat(x).take(count).collect(); |
| 61 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `x.repeat(count)` |
| 62 | + |
| 63 | +error: aborting due to 10 previous errors |
46 | 64 |
|
0 commit comments