]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/range.stderr
Merge branch 'master' into never_loop
[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: use of deprecated item: replaced by `Iterator::step_by`
10   --> range.rs:13:12
11    |
12 13 |     (0..1).step_by(0);
13    |            ^^^^^^^
14    |
15    = note: `-D deprecated` implied by `-D warnings`
16
17 error: use of deprecated item: replaced by `Iterator::step_by`
18   --> range.rs:15:12
19    |
20 15 |     (0..1).step_by(1);
21    |            ^^^^^^^
22    |
23    = note: `-D deprecated` implied by `-D warnings`
24
25 error: Range::step_by(0) produces an infinite iterator. Consider using `std::iter::repeat()` instead
26   --> range.rs:17:5
27    |
28 17 |     (1..).step_by(0);
29    |     ^^^^^^^^^^^^^^^^
30    |
31    = note: `-D range-step-by-zero` implied by `-D warnings`
32
33 error: use of deprecated item: replaced by `Iterator::step_by`
34   --> range.rs:17:11
35    |
36 17 |     (1..).step_by(0);
37    |           ^^^^^^^
38    |
39    = note: `-D deprecated` implied by `-D warnings`
40
41 error: Range::step_by(0) produces an infinite iterator. Consider using `std::iter::repeat()` instead
42   --> range.rs:18:5
43    |
44 18 |     (1...2).step_by(0);
45    |     ^^^^^^^^^^^^^^^^^^
46    |
47    = note: `-D range-step-by-zero` implied by `-D warnings`
48
49 error: use of deprecated item: replaced by `Iterator::step_by`
50   --> range.rs:18:13
51    |
52 18 |     (1...2).step_by(0);
53    |             ^^^^^^^
54    |
55    = note: `-D deprecated` implied by `-D warnings`
56
57 error: Range::step_by(0) produces an infinite iterator. Consider using `std::iter::repeat()` instead
58   --> range.rs:21:5
59    |
60 21 |     x.step_by(0);
61    |     ^^^^^^^^^^^^
62    |
63    = note: `-D range-step-by-zero` implied by `-D warnings`
64
65 error: use of deprecated item: replaced by `Iterator::step_by`
66   --> range.rs:21:7
67    |
68 21 |     x.step_by(0);
69    |       ^^^^^^^
70    |
71    = note: `-D deprecated` implied by `-D warnings`
72
73 error: It is more idiomatic to use v1.iter().enumerate()
74   --> range.rs:29:14
75    |
76 29 |     let _x = v1.iter().zip(0..v1.len());
77    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^
78    |
79    = note: `-D range-zip-with-len` implied by `-D warnings`
80
81 error: aborting due to previous error(s)
82
83 error: Could not compile `clippy_tests`.
84
85 To learn more, run the command again with --verbose.