]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/range.stderr
53ba8d45b5def96699b31741258d2b5b0aa2581e
[rust.git] / clippy_tests / examples / range.stderr
1 error: use of deprecated item: replaced by `Iterator::step_by`
2   --> range.rs:14:12
3    |
4 14 |     (0..1).step_by(0);
5    |            ^^^^^^^
6    |
7    = note: `-D deprecated` implied by `-D warnings`
8
9 error: use of deprecated item: replaced by `Iterator::step_by`
10   --> range.rs:16:12
11    |
12 16 |     (0..1).step_by(1);
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:18:11
19    |
20 18 |     (1..).step_by(0);
21    |           ^^^^^^^
22    |
23    = note: `-D deprecated` implied by `-D warnings`
24
25 error: use of deprecated item: replaced by `Iterator::step_by`
26   --> range.rs:19:13
27    |
28 19 |     (1...2).step_by(0);
29    |             ^^^^^^^
30    |
31    = note: `-D deprecated` implied by `-D warnings`
32
33 error: use of deprecated item: replaced by `Iterator::step_by`
34   --> range.rs:22:7
35    |
36 22 |     x.step_by(0);
37    |       ^^^^^^^
38    |
39    = note: `-D deprecated` implied by `-D warnings`
40
41 error: It is more idiomatic to use v1.iter().enumerate()
42   --> range.rs:30:14
43    |
44 30 |     let _x = v1.iter().zip(0..v1.len());
45    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^
46    |
47    = note: `-D range-zip-with-len` implied by `-D warnings`
48
49 error: Iterator::step_by(0) will panic at runtime
50   --> range.rs:34:13
51    |
52 34 |     let _ = v1.iter().step_by(2/3);
53    |             ^^^^^^^^^^^^^^^^^^^^^^
54    |
55    = note: `-D iterator-step-by-zero` implied by `-D warnings`
56
57 error: aborting due to previous error(s)
58
59 error: Could not compile `clippy_tests`.
60
61 To learn more, run the command again with --verbose.