|
| 1 | +error[E0599]: `RangeTo<{integer}>` is not an iterator |
| 2 | + --> $DIR/range-to-iterator-suggestion-issue-147749.rs:2:20 |
| 3 | + | |
| 4 | +LL | for x in (..4).rev() { |
| 5 | + | ^^^ `RangeTo<{integer}>` is not an iterator |
| 6 | + | |
| 7 | + = note: the following trait bounds were not satisfied: |
| 8 | + `RangeTo<{integer}>: Iterator` |
| 9 | + which is required by `&mut RangeTo<{integer}>: Iterator` |
| 10 | + = note: you might have meant to use a bounded `Range` |
| 11 | +help: consider using a bounded `Range` by adding a concrete starting value |
| 12 | + | |
| 13 | +LL | for x in (0..4).rev() { |
| 14 | + | + |
| 15 | + |
| 16 | +error[E0599]: `std::ops::RangeToInclusive<{integer}>` is not an iterator |
| 17 | + --> $DIR/range-to-iterator-suggestion-issue-147749.rs:8:21 |
| 18 | + | |
| 19 | +LL | for x in (..=4).rev() { |
| 20 | + | ^^^ `std::ops::RangeToInclusive<{integer}>` is not an iterator |
| 21 | + | |
| 22 | + = note: the following trait bounds were not satisfied: |
| 23 | + `std::ops::RangeToInclusive<{integer}>: Iterator` |
| 24 | + which is required by `&mut std::ops::RangeToInclusive<{integer}>: Iterator` |
| 25 | + = note: you might have meant to use a bounded `RangeInclusive` |
| 26 | +help: consider using a bounded `RangeInclusive` by adding a concrete starting value |
| 27 | + | |
| 28 | +LL | for x in (0..=4).rev() { |
| 29 | + | + |
| 30 | + |
| 31 | +error[E0599]: no method named `iter` found for struct `RangeTo<Idx>` in the current scope |
| 32 | + --> $DIR/range-to-iterator-suggestion-issue-147749.rs:15:28 |
| 33 | + | |
| 34 | +LL | let _v: Vec<_> = (..5).iter().collect(); |
| 35 | + | ^^^^ method not found in `RangeTo<{integer}>` |
| 36 | + |
| 37 | +error[E0599]: `RangeTo<char>` is not an iterator |
| 38 | + --> $DIR/range-to-iterator-suggestion-issue-147749.rs:18:23 |
| 39 | + | |
| 40 | +LL | for _x in (..'a').rev() {} |
| 41 | + | ^^^ `RangeTo<char>` is not an iterator |
| 42 | + | |
| 43 | + = note: the following trait bounds were not satisfied: |
| 44 | + `RangeTo<char>: Iterator` |
| 45 | + which is required by `&mut RangeTo<char>: Iterator` |
| 46 | + = note: you might have meant to use a bounded `Range` |
| 47 | +help: consider using a bounded `Range` by adding a concrete starting value |
| 48 | + | |
| 49 | +LL | for _x in (/* start */..'a').rev() {} |
| 50 | + | +++++++++++ |
| 51 | + |
| 52 | +error[E0599]: `std::ops::RangeToInclusive<char>` is not an iterator |
| 53 | + --> $DIR/range-to-iterator-suggestion-issue-147749.rs:22:24 |
| 54 | + | |
| 55 | +LL | for _x in (..='a').rev() {} |
| 56 | + | ^^^ `std::ops::RangeToInclusive<char>` is not an iterator |
| 57 | + | |
| 58 | + = note: the following trait bounds were not satisfied: |
| 59 | + `std::ops::RangeToInclusive<char>: Iterator` |
| 60 | + which is required by `&mut std::ops::RangeToInclusive<char>: Iterator` |
| 61 | + = note: you might have meant to use a bounded `RangeInclusive` |
| 62 | +help: consider using a bounded `RangeInclusive` by adding a concrete starting value |
| 63 | + | |
| 64 | +LL | for _x in (/* start */..='a').rev() {} |
| 65 | + | +++++++++++ |
| 66 | + |
| 67 | +error[E0599]: `RangeTo<{integer}>` is not an iterator |
| 68 | + --> $DIR/range-to-iterator-suggestion-issue-147749.rs:26:23 |
| 69 | + | |
| 70 | +LL | for _x in (..-10).rev() {} |
| 71 | + | ^^^ `RangeTo<{integer}>` is not an iterator |
| 72 | + | |
| 73 | + = note: the following trait bounds were not satisfied: |
| 74 | + `RangeTo<{integer}>: Iterator` |
| 75 | + which is required by `&mut RangeTo<{integer}>: Iterator` |
| 76 | + = note: you might have meant to use a bounded `Range` |
| 77 | +help: consider using a bounded `Range` by adding a concrete starting value |
| 78 | + | |
| 79 | +LL | for _x in (/* start */..-10).rev() {} |
| 80 | + | +++++++++++ |
| 81 | + |
| 82 | +error[E0599]: `std::ops::RangeToInclusive<{integer}>` is not an iterator |
| 83 | + --> $DIR/range-to-iterator-suggestion-issue-147749.rs:30:24 |
| 84 | + | |
| 85 | +LL | for _x in (..=-10).rev() {} |
| 86 | + | ^^^ `std::ops::RangeToInclusive<{integer}>` is not an iterator |
| 87 | + | |
| 88 | + = note: the following trait bounds were not satisfied: |
| 89 | + `std::ops::RangeToInclusive<{integer}>: Iterator` |
| 90 | + which is required by `&mut std::ops::RangeToInclusive<{integer}>: Iterator` |
| 91 | + = note: you might have meant to use a bounded `RangeInclusive` |
| 92 | +help: consider using a bounded `RangeInclusive` by adding a concrete starting value |
| 93 | + | |
| 94 | +LL | for _x in (/* start */..=-10).rev() {} |
| 95 | + | +++++++++++ |
| 96 | + |
| 97 | +error[E0599]: `RangeTo<{integer}>` is not an iterator |
| 98 | + --> $DIR/range-to-iterator-suggestion-issue-147749.rs:35:28 |
| 99 | + | |
| 100 | +LL | for _x in (..-end_val).rev() {} |
| 101 | + | ^^^ `RangeTo<{integer}>` is not an iterator |
| 102 | + | |
| 103 | + = note: the following trait bounds were not satisfied: |
| 104 | + `RangeTo<{integer}>: Iterator` |
| 105 | + which is required by `&mut RangeTo<{integer}>: Iterator` |
| 106 | + = note: you might have meant to use a bounded `Range` |
| 107 | +help: consider using a bounded `Range` by adding a concrete starting value |
| 108 | + | |
| 109 | +LL | for _x in (/* start */..-end_val).rev() {} |
| 110 | + | +++++++++++ |
| 111 | + |
| 112 | +error: aborting due to 8 previous errors |
| 113 | + |
| 114 | +For more information about this error, try `rustc --explain E0599`. |
0 commit comments