|
| 1 | +error[E0277]: `{integer}` is not an iterator |
| 2 | + --> $DIR/integral.rs:2:14 |
| 3 | + | |
| 4 | +LL | for _ in 42 {} |
| 5 | + | ^^ `{integer}` is not an iterator |
| 6 | + | |
| 7 | + = help: the trait `std::iter::Iterator` is not implemented for `{integer}` |
| 8 | + = note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end` |
| 9 | + = note: required by `std::iter::IntoIterator::into_iter` |
| 10 | + |
| 11 | +error[E0277]: `u8` is not an iterator |
| 12 | + --> $DIR/integral.rs:4:14 |
| 13 | + | |
| 14 | +LL | for _ in 42 as u8 {} |
| 15 | + | ^^^^^^^^ `u8` is not an iterator |
| 16 | + | |
| 17 | + = help: the trait `std::iter::Iterator` is not implemented for `u8` |
| 18 | + = note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end` |
| 19 | + = note: required by `std::iter::IntoIterator::into_iter` |
| 20 | + |
| 21 | +error[E0277]: `i8` is not an iterator |
| 22 | + --> $DIR/integral.rs:6:14 |
| 23 | + | |
| 24 | +LL | for _ in 42 as i8 {} |
| 25 | + | ^^^^^^^^ `i8` is not an iterator |
| 26 | + | |
| 27 | + = help: the trait `std::iter::Iterator` is not implemented for `i8` |
| 28 | + = note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end` |
| 29 | + = note: required by `std::iter::IntoIterator::into_iter` |
| 30 | + |
| 31 | +error[E0277]: `u16` is not an iterator |
| 32 | + --> $DIR/integral.rs:8:14 |
| 33 | + | |
| 34 | +LL | for _ in 42 as u16 {} |
| 35 | + | ^^^^^^^^^ `u16` is not an iterator |
| 36 | + | |
| 37 | + = help: the trait `std::iter::Iterator` is not implemented for `u16` |
| 38 | + = note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end` |
| 39 | + = note: required by `std::iter::IntoIterator::into_iter` |
| 40 | + |
| 41 | +error[E0277]: `i16` is not an iterator |
| 42 | + --> $DIR/integral.rs:10:14 |
| 43 | + | |
| 44 | +LL | for _ in 42 as i16 {} |
| 45 | + | ^^^^^^^^^ `i16` is not an iterator |
| 46 | + | |
| 47 | + = help: the trait `std::iter::Iterator` is not implemented for `i16` |
| 48 | + = note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end` |
| 49 | + = note: required by `std::iter::IntoIterator::into_iter` |
| 50 | + |
| 51 | +error[E0277]: `u32` is not an iterator |
| 52 | + --> $DIR/integral.rs:12:14 |
| 53 | + | |
| 54 | +LL | for _ in 42 as u32 {} |
| 55 | + | ^^^^^^^^^ `u32` is not an iterator |
| 56 | + | |
| 57 | + = help: the trait `std::iter::Iterator` is not implemented for `u32` |
| 58 | + = note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end` |
| 59 | + = note: required by `std::iter::IntoIterator::into_iter` |
| 60 | + |
| 61 | +error[E0277]: `i32` is not an iterator |
| 62 | + --> $DIR/integral.rs:14:14 |
| 63 | + | |
| 64 | +LL | for _ in 42 as i32 {} |
| 65 | + | ^^^^^^^^^ `i32` is not an iterator |
| 66 | + | |
| 67 | + = help: the trait `std::iter::Iterator` is not implemented for `i32` |
| 68 | + = note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end` |
| 69 | + = note: required by `std::iter::IntoIterator::into_iter` |
| 70 | + |
| 71 | +error[E0277]: `u64` is not an iterator |
| 72 | + --> $DIR/integral.rs:16:14 |
| 73 | + | |
| 74 | +LL | for _ in 42 as u64 {} |
| 75 | + | ^^^^^^^^^ `u64` is not an iterator |
| 76 | + | |
| 77 | + = help: the trait `std::iter::Iterator` is not implemented for `u64` |
| 78 | + = note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end` |
| 79 | + = note: required by `std::iter::IntoIterator::into_iter` |
| 80 | + |
| 81 | +error[E0277]: `i64` is not an iterator |
| 82 | + --> $DIR/integral.rs:18:14 |
| 83 | + | |
| 84 | +LL | for _ in 42 as i64 {} |
| 85 | + | ^^^^^^^^^ `i64` is not an iterator |
| 86 | + | |
| 87 | + = help: the trait `std::iter::Iterator` is not implemented for `i64` |
| 88 | + = note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end` |
| 89 | + = note: required by `std::iter::IntoIterator::into_iter` |
| 90 | + |
| 91 | +error[E0277]: `usize` is not an iterator |
| 92 | + --> $DIR/integral.rs:20:14 |
| 93 | + | |
| 94 | +LL | for _ in 42 as usize {} |
| 95 | + | ^^^^^^^^^^^ `usize` is not an iterator |
| 96 | + | |
| 97 | + = help: the trait `std::iter::Iterator` is not implemented for `usize` |
| 98 | + = note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end` |
| 99 | + = note: required by `std::iter::IntoIterator::into_iter` |
| 100 | + |
| 101 | +error[E0277]: `isize` is not an iterator |
| 102 | + --> $DIR/integral.rs:22:14 |
| 103 | + | |
| 104 | +LL | for _ in 42 as isize {} |
| 105 | + | ^^^^^^^^^^^ `isize` is not an iterator |
| 106 | + | |
| 107 | + = help: the trait `std::iter::Iterator` is not implemented for `isize` |
| 108 | + = note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end` |
| 109 | + = note: required by `std::iter::IntoIterator::into_iter` |
| 110 | + |
| 111 | +error[E0277]: `{float}` is not an iterator |
| 112 | + --> $DIR/integral.rs:24:14 |
| 113 | + | |
| 114 | +LL | for _ in 42.0 {} |
| 115 | + | ^^^^ `{float}` is not an iterator |
| 116 | + | |
| 117 | + = help: the trait `std::iter::Iterator` is not implemented for `{float}` |
| 118 | + = note: required by `std::iter::IntoIterator::into_iter` |
| 119 | + |
| 120 | +error: aborting due to 12 previous errors |
| 121 | + |
| 122 | +For more information about this error, try `rustc --explain E0277`. |
0 commit comments