summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/reversed_empty_ranges_loops_fixable.stderr
blob: dfc52e64c751561551c187462ec897aa4885b378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
error: this range is empty so it will yield no values
  --> $DIR/reversed_empty_ranges_loops_fixable.rs:8:14
   |
LL |     for i in 10..0 {
   |              ^^^^^
   |
   = note: `-D clippy::reversed-empty-ranges` implied by `-D warnings`
help: consider using the following if you are attempting to iterate over this range in reverse
   |
LL |     for i in (0..10).rev() {
   |              ~~~~~~~~~~~~~

error: this range is empty so it will yield no values
  --> $DIR/reversed_empty_ranges_loops_fixable.rs:12:14
   |
LL |     for i in 10..=0 {
   |              ^^^^^^
   |
help: consider using the following if you are attempting to iterate over this range in reverse
   |
LL |     for i in (0..=10).rev() {
   |              ~~~~~~~~~~~~~~

error: this range is empty so it will yield no values
  --> $DIR/reversed_empty_ranges_loops_fixable.rs:16:14
   |
LL |     for i in MAX_LEN..0 {
   |              ^^^^^^^^^^
   |
help: consider using the following if you are attempting to iterate over this range in reverse
   |
LL |     for i in (0..MAX_LEN).rev() {
   |              ~~~~~~~~~~~~~~~~~~

error: this range is empty so it will yield no values
  --> $DIR/reversed_empty_ranges_loops_fixable.rs:35:14
   |
LL |     for i in (10..0).map(|x| x * 2) {
   |              ^^^^^^^
   |
help: consider using the following if you are attempting to iterate over this range in reverse
   |
LL |     for i in (0..10).rev().map(|x| x * 2) {
   |              ~~~~~~~~~~~~~

error: this range is empty so it will yield no values
  --> $DIR/reversed_empty_ranges_loops_fixable.rs:40:14
   |
LL |     for i in 10..5 + 4 {
   |              ^^^^^^^^^
   |
help: consider using the following if you are attempting to iterate over this range in reverse
   |
LL |     for i in (5 + 4..10).rev() {
   |              ~~~~~~~~~~~~~~~~~

error: this range is empty so it will yield no values
  --> $DIR/reversed_empty_ranges_loops_fixable.rs:44:14
   |
LL |     for i in (5 + 2)..(3 - 1) {
   |              ^^^^^^^^^^^^^^^^
   |
help: consider using the following if you are attempting to iterate over this range in reverse
   |
LL |     for i in ((3 - 1)..(5 + 2)).rev() {
   |              ~~~~~~~~~~~~~~~~~~~~~~~~

error: aborting due to 6 previous errors