]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/range.stderr
Merge pull request #1766 from Manishearth/testing_refactor
[rust.git] / clippy_tests / examples / range.stderr
1 error: Range::step_by(0) produces an infinite iterator. Consider using `std::iter::repeat()` instead
2   --> range.rs:13:5
3    |
4 13 |     (0..1).step_by(0);
5    |     ^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D range-step-by-zero` implied by `-D warnings`
8
9 error: Range::step_by(0) produces an infinite iterator. Consider using `std::iter::repeat()` instead
10   --> range.rs:17:5
11    |
12 17 |     (1..).step_by(0);
13    |     ^^^^^^^^^^^^^^^^
14    |
15    = note: `-D range-step-by-zero` implied by `-D warnings`
16
17 error: Range::step_by(0) produces an infinite iterator. Consider using `std::iter::repeat()` instead
18   --> range.rs:18:5
19    |
20 18 |     (1...2).step_by(0);
21    |     ^^^^^^^^^^^^^^^^^^
22    |
23    = note: `-D range-step-by-zero` implied by `-D warnings`
24
25 error: Range::step_by(0) produces an infinite iterator. Consider using `std::iter::repeat()` instead
26   --> range.rs:21:5
27    |
28 21 |     x.step_by(0);
29    |     ^^^^^^^^^^^^
30    |
31    = note: `-D range-step-by-zero` implied by `-D warnings`
32
33 error: It is more idiomatic to use v1.iter().enumerate()
34   --> range.rs:29:14
35    |
36 29 |     let _x = v1.iter().zip(0..v1.len());
37    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^
38    |
39    = note: `-D range-zip-with-len` implied by `-D warnings`
40
41 error: aborting due to 5 previous errors
42
43 error: Could not compile `clippy_tests`.
44
45 To learn more, run the command again with --verbose.