]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/iterator_step_by_zero.stderr
Merge commit 'cd4810de42c57b64b74dae09c530a4c3a41f87b9' into libgccjit-codegen
[rust.git] / src / tools / clippy / tests / ui / iterator_step_by_zero.stderr
1 error: `Iterator::step_by(0)` will panic at runtime
2   --> $DIR/iterator_step_by_zero.rs:3:13
3    |
4 LL |     let _ = vec!["A", "B", "B"].iter().step_by(0);
5    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::iterator-step-by-zero` implied by `-D warnings`
8
9 error: `Iterator::step_by(0)` will panic at runtime
10   --> $DIR/iterator_step_by_zero.rs:4:13
11    |
12 LL |     let _ = "XXX".chars().step_by(0);
13    |             ^^^^^^^^^^^^^^^^^^^^^^^^
14
15 error: `Iterator::step_by(0)` will panic at runtime
16   --> $DIR/iterator_step_by_zero.rs:5:13
17    |
18 LL |     let _ = (0..1).step_by(0);
19    |             ^^^^^^^^^^^^^^^^^
20
21 error: `Iterator::step_by(0)` will panic at runtime
22   --> $DIR/iterator_step_by_zero.rs:14:13
23    |
24 LL |     let _ = (1..).step_by(0);
25    |             ^^^^^^^^^^^^^^^^
26
27 error: `Iterator::step_by(0)` will panic at runtime
28   --> $DIR/iterator_step_by_zero.rs:15:13
29    |
30 LL |     let _ = (1..=2).step_by(0);
31    |             ^^^^^^^^^^^^^^^^^^
32
33 error: `Iterator::step_by(0)` will panic at runtime
34   --> $DIR/iterator_step_by_zero.rs:18:13
35    |
36 LL |     let _ = x.step_by(0);
37    |             ^^^^^^^^^^^^
38
39 error: `Iterator::step_by(0)` will panic at runtime
40   --> $DIR/iterator_step_by_zero.rs:22:13
41    |
42 LL |     let _ = v1.iter().step_by(2 / 3);
43    |             ^^^^^^^^^^^^^^^^^^^^^^^^
44
45 error: aborting due to 7 previous errors
46