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