]> git.lizzy.rs Git - rust.git/blob - tests/ui/iterators/integral.stderr
Auto merge of #106776 - oli-obk:om_nom_nom_nom_nom, r=cjgillot
[rust.git] / tests / ui / iterators / integral.stderr
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 `Iterator` is not implemented for `{integer}`
8    = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
9    = note: required for `{integer}` to implement `IntoIterator`
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 `Iterator` is not implemented for `u8`
18    = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
19    = note: required for `u8` to implement `IntoIterator`
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 `Iterator` is not implemented for `i8`
28    = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
29    = note: required for `i8` to implement `IntoIterator`
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 `Iterator` is not implemented for `u16`
38    = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
39    = note: required for `u16` to implement `IntoIterator`
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 `Iterator` is not implemented for `i16`
48    = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
49    = note: required for `i16` to implement `IntoIterator`
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 `Iterator` is not implemented for `u32`
58    = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
59    = note: required for `u32` to implement `IntoIterator`
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 `Iterator` is not implemented for `i32`
68    = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
69    = note: required for `i32` to implement `IntoIterator`
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 `Iterator` is not implemented for `u64`
78    = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
79    = note: required for `u64` to implement `IntoIterator`
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 `Iterator` is not implemented for `i64`
88    = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
89    = note: required for `i64` to implement `IntoIterator`
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 `Iterator` is not implemented for `usize`
98    = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
99    = note: required for `usize` to implement `IntoIterator`
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 `Iterator` is not implemented for `isize`
108    = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
109    = note: required for `isize` to implement `IntoIterator`
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 `Iterator` is not implemented for `{float}`
118    = note: if you want to iterate between `start` until a value `end`, use the exclusive range syntax `start..end` or the inclusive range syntax `start..=end`
119    = note: required for `{float}` to implement `IntoIterator`
120
121 error: aborting due to 12 previous errors
122
123 For more information about this error, try `rustc --explain E0277`.