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