@@ -16,17 +16,17 @@ note: the method call chain might not have had the expected associated types
1616LL | let scores = vec![(0, 0)]
1717 | ------------ this expression has type `Vec<({integer}, {integer})>`
1818LL | .iter()
19- | ------ `std::iter:: Iterator::Item` is `&({integer}, {integer})` here
19+ | ------ `Iterator::Item` is `&({integer}, {integer})` here
2020LL | .map(|(a, b)| {
2121 | __________^
2222LL | | a + b;
2323LL | | });
24- | |__________^ `std::iter:: Iterator::Item` changed to `()` here
24+ | |__________^ `Iterator::Item` changed to `()` here
2525note: required by a bound in `std::iter::Iterator::sum`
2626 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
2727 |
2828LL | S: Sum<Self::Item>,
29- | ^^^^^^^^^^^^^^^ required by this bound in `std::iter:: Iterator::sum`
29+ | ^^^^^^^^^^^^^^^ required by this bound in `Iterator::sum`
3030
3131error[E0277]: a value of type `i32` cannot be made by summing an iterator over elements of type `()`
3232 --> $DIR/invalid-iterator-chain.rs:10:9
@@ -52,24 +52,24 @@ note: the method call chain might not have had the expected associated types
5252LL | vec![0, 1]
5353 | ---------- this expression has type `Vec<{integer}>`
5454LL | .iter()
55- | ------ `std::iter:: Iterator::Item` is `&{integer}` here
55+ | ------ `Iterator::Item` is `&{integer}` here
5656LL | .map(|x| x * 2)
57- | ^^^^^^^^^^^^^^ `std::iter:: Iterator::Item` changed to `{integer}` here
57+ | ^^^^^^^^^^^^^^ `Iterator::Item` changed to `{integer}` here
5858LL | .map(|x| x as f64)
59- | ----------------- `std::iter:: Iterator::Item` changed to `f64` here
59+ | ----------------- `Iterator::Item` changed to `f64` here
6060LL | .map(|x| x as i64)
61- | ----------------- `std::iter:: Iterator::Item` changed to `i64` here
61+ | ----------------- `Iterator::Item` changed to `i64` here
6262LL | .filter(|x| *x > 0)
63- | ------------------ `std::iter:: Iterator::Item` remains `i64` here
63+ | ------------------ `Iterator::Item` remains `i64` here
6464LL | .map(|x| { x + 1 })
65- | ------------------ `std::iter:: Iterator::Item` remains `i64` here
65+ | ------------------ `Iterator::Item` remains `i64` here
6666LL | .map(|x| { x; })
67- | ^^^^^^^^^^^^^^^ `std::iter:: Iterator::Item` changed to `()` here
67+ | ^^^^^^^^^^^^^^^ `Iterator::Item` changed to `()` here
6868note: required by a bound in `std::iter::Iterator::sum`
6969 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
7070 |
7171LL | S: Sum<Self::Item>,
72- | ^^^^^^^^^^^^^^^ required by this bound in `std::iter:: Iterator::sum`
72+ | ^^^^^^^^^^^^^^^ required by this bound in `Iterator::sum`
7373
7474error[E0277]: a value of type `i32` cannot be made by summing an iterator over elements of type `f64`
7575 --> $DIR/invalid-iterator-chain.rs:22:9
@@ -94,20 +94,20 @@ note: the method call chain might not have had the expected associated types
9494LL | vec![0, 1]
9595 | ---------- this expression has type `Vec<{integer}>`
9696LL | .iter()
97- | ------ `std::iter:: Iterator::Item` is `&{integer}` here
97+ | ------ `Iterator::Item` is `&{integer}` here
9898LL | .map(|x| x * 2)
99- | ^^^^^^^^^^^^^^ `std::iter:: Iterator::Item` changed to `{integer}` here
99+ | ^^^^^^^^^^^^^^ `Iterator::Item` changed to `{integer}` here
100100LL | .map(|x| x as f64)
101- | ^^^^^^^^^^^^^^^^^ `std::iter:: Iterator::Item` changed to `f64` here
101+ | ^^^^^^^^^^^^^^^^^ `Iterator::Item` changed to `f64` here
102102LL | .filter(|x| *x > 0.0)
103- | -------------------- `std::iter:: Iterator::Item` remains `f64` here
103+ | -------------------- `Iterator::Item` remains `f64` here
104104LL | .map(|x| { x + 1.0 })
105- | -------------------- `std::iter:: Iterator::Item` remains `f64` here
105+ | -------------------- `Iterator::Item` remains `f64` here
106106note: required by a bound in `std::iter::Iterator::sum`
107107 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
108108 |
109109LL | S: Sum<Self::Item>,
110- | ^^^^^^^^^^^^^^^ required by this bound in `std::iter:: Iterator::sum`
110+ | ^^^^^^^^^^^^^^^ required by this bound in `Iterator::sum`
111111
112112error[E0277]: a value of type `i32` cannot be made by summing an iterator over elements of type `()`
113113 --> $DIR/invalid-iterator-chain.rs:30:20
@@ -125,15 +125,15 @@ note: the method call chain might not have had the expected associated types
125125 --> $DIR/invalid-iterator-chain.rs:30:38
126126 |
127127LL | println!("{}", vec![0, 1].iter().map(|x| { x; }).sum::<i32>());
128- | ---------- ------ ^^^^^^^^^^^^^^^ `std::iter:: Iterator::Item` changed to `()` here
128+ | ---------- ------ ^^^^^^^^^^^^^^^ `Iterator::Item` changed to `()` here
129129 | | |
130- | | `std::iter:: Iterator::Item` is `&{integer}` here
130+ | | `Iterator::Item` is `&{integer}` here
131131 | this expression has type `Vec<{integer}>`
132132note: required by a bound in `std::iter::Iterator::sum`
133133 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
134134 |
135135LL | S: Sum<Self::Item>,
136- | ^^^^^^^^^^^^^^^ required by this bound in `std::iter:: Iterator::sum`
136+ | ^^^^^^^^^^^^^^^ required by this bound in `Iterator::sum`
137137
138138error[E0277]: a value of type `i32` cannot be made by summing an iterator over elements of type `&()`
139139 --> $DIR/invalid-iterator-chain.rs:31:20
@@ -151,14 +151,14 @@ note: the method call chain might not have had the expected associated types
151151 --> $DIR/invalid-iterator-chain.rs:31:33
152152 |
153153LL | println!("{}", vec![(), ()].iter().sum::<i32>());
154- | ------------ ^^^^^^ `std::iter:: Iterator::Item` is `&()` here
154+ | ------------ ^^^^^^ `Iterator::Item` is `&()` here
155155 | |
156156 | this expression has type `Vec<()>`
157157note: required by a bound in `std::iter::Iterator::sum`
158158 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
159159 |
160160LL | S: Sum<Self::Item>,
161- | ^^^^^^^^^^^^^^^ required by this bound in `std::iter:: Iterator::sum`
161+ | ^^^^^^^^^^^^^^^ required by this bound in `Iterator::sum`
162162
163163error[E0277]: a value of type `Vec<i32>` cannot be built from an iterator over elements of type `()`
164164 --> $DIR/invalid-iterator-chain.rs:40:23
@@ -176,23 +176,23 @@ note: the method call chain might not have had the expected associated types
176176LL | let a = vec![0];
177177 | ------- this expression has type `Vec<{integer}>`
178178LL | let b = a.into_iter();
179- | ----------- `std::iter:: Iterator::Item` is `{integer}` here
179+ | ----------- `Iterator::Item` is `{integer}` here
180180LL | let c = b.map(|x| x + 1);
181- | -------------- `std::iter:: Iterator::Item` remains `{integer}` here
181+ | -------------- `Iterator::Item` remains `{integer}` here
182182LL | let d = c.filter(|x| *x > 10 );
183- | -------------------- `std::iter:: Iterator::Item` remains `{integer}` here
183+ | -------------------- `Iterator::Item` remains `{integer}` here
184184LL | let e = d.map(|x| {
185185 | _______________^
186186LL | | x + 1;
187187LL | | });
188- | |______^ `std::iter:: Iterator::Item` changed to `()` here
188+ | |______^ `Iterator::Item` changed to `()` here
189189LL | let f = e.filter(|_| false);
190- | ----------------- `std::iter:: Iterator::Item` remains `()` here
190+ | ----------------- `Iterator::Item` remains `()` here
191191note: required by a bound in `collect`
192192 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
193193 |
194194LL | fn collect<B: FromIterator<Self::Item>>(self) -> B
195- | ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `collect`
195+ | ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Iterator:: collect`
196196
197197error: aborting due to 6 previous errors
198198
0 commit comments