You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/feature-gates/feature-gate-trivial_bounds.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ LL | | }
84
84
| |_^ `i32` is not an iterator
85
85
|
86
86
= help: the trait `std::iter::Iterator` is not implemented for `i32`
87
-
= note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end`
87
+
= 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`
88
88
= help: see issue #48214
89
89
= help: add #![feature(trivial_bounds)] to the crate attributes to enable
| ^^^^^^^^^^^^^^^^^^^^^^^ `i32` is not an iterator
12
12
|
13
13
= help: the trait `std::iter::Iterator` is not implemented for `i32`
14
-
= note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end`
14
+
= 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`
15
15
16
16
error[E0204]: the trait `Copy` may not be implemented for this type
Copy file name to clipboardExpand all lines: src/test/ui/iterators/bound.stderr
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ LL | struct T(S<u8>);
5
5
| ^^^^^ `u8` is not an iterator
6
6
|
7
7
= help: the trait `std::iter::Iterator` is not implemented for `u8`
8
-
= note: if you want to iterate between `0` until a value `end`, use the range syntax: `0..end`
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`
Copy file name to clipboardExpand all lines: src/test/ui/iterators/integral.stderr
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ LL | for _ in 42 {}
5
5
| ^^ `{integer}` is not an iterator
6
6
|
7
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`
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
9
= note: required by `std::iter::IntoIterator::into_iter`
10
10
11
11
error[E0277]: `u8` is not an iterator
@@ -15,7 +15,7 @@ LL | for _ in 42 as u8 {}
15
15
| ^^^^^^^^ `u8` is not an iterator
16
16
|
17
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`
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
19
= note: required by `std::iter::IntoIterator::into_iter`
20
20
21
21
error[E0277]: `i8` is not an iterator
@@ -25,7 +25,7 @@ LL | for _ in 42 as i8 {}
25
25
| ^^^^^^^^ `i8` is not an iterator
26
26
|
27
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`
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
29
= note: required by `std::iter::IntoIterator::into_iter`
30
30
31
31
error[E0277]: `u16` is not an iterator
@@ -35,7 +35,7 @@ LL | for _ in 42 as u16 {}
35
35
| ^^^^^^^^^ `u16` is not an iterator
36
36
|
37
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`
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
39
= note: required by `std::iter::IntoIterator::into_iter`
40
40
41
41
error[E0277]: `i16` is not an iterator
@@ -45,7 +45,7 @@ LL | for _ in 42 as i16 {}
45
45
| ^^^^^^^^^ `i16` is not an iterator
46
46
|
47
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`
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
49
= note: required by `std::iter::IntoIterator::into_iter`
50
50
51
51
error[E0277]: `u32` is not an iterator
@@ -55,7 +55,7 @@ LL | for _ in 42 as u32 {}
55
55
| ^^^^^^^^^ `u32` is not an iterator
56
56
|
57
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`
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
59
= note: required by `std::iter::IntoIterator::into_iter`
60
60
61
61
error[E0277]: `i32` is not an iterator
@@ -65,7 +65,7 @@ LL | for _ in 42 as i32 {}
65
65
| ^^^^^^^^^ `i32` is not an iterator
66
66
|
67
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`
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
69
= note: required by `std::iter::IntoIterator::into_iter`
70
70
71
71
error[E0277]: `u64` is not an iterator
@@ -75,7 +75,7 @@ LL | for _ in 42 as u64 {}
75
75
| ^^^^^^^^^ `u64` is not an iterator
76
76
|
77
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`
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
79
= note: required by `std::iter::IntoIterator::into_iter`
80
80
81
81
error[E0277]: `i64` is not an iterator
@@ -85,7 +85,7 @@ LL | for _ in 42 as i64 {}
85
85
| ^^^^^^^^^ `i64` is not an iterator
86
86
|
87
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`
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
89
= note: required by `std::iter::IntoIterator::into_iter`
90
90
91
91
error[E0277]: `usize` is not an iterator
@@ -95,7 +95,7 @@ LL | for _ in 42 as usize {}
95
95
| ^^^^^^^^^^^ `usize` is not an iterator
96
96
|
97
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`
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
99
= note: required by `std::iter::IntoIterator::into_iter`
100
100
101
101
error[E0277]: `isize` is not an iterator
@@ -105,7 +105,7 @@ LL | for _ in 42 as isize {}
105
105
| ^^^^^^^^^^^ `isize` is not an iterator
106
106
|
107
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`
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
109
= note: required by `std::iter::IntoIterator::into_iter`
0 commit comments