|
1 |
| -error[E0277]: `&T` is not an iterator |
| 1 | +error[E0277]: `&'a T` is not an iterator |
2 | 2 | --> $DIR/hir-wf-check-erase-regions.rs:7:21
|
3 | 3 | |
|
4 | 4 | LL | type IntoIter = std::iter::Flatten<std::slice::Iter<'a, T>>;
|
5 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&T` is not an iterator |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&'a T` is not an iterator |
6 | 6 | |
|
7 |
| - = help: the trait `Iterator` is not implemented for `&T` |
| 7 | + = help: the trait `Iterator` is not implemented for `&'a T` |
8 | 8 | = help: the trait `Iterator` is implemented for `&mut I`
|
9 |
| - = note: required for `&T` to implement `IntoIterator` |
| 9 | + = note: required for `&'a T` to implement `IntoIterator` |
10 | 10 | note: required by a bound in `Flatten`
|
11 | 11 | --> $SRC_DIR/core/src/iter/adapters/flatten.rs:LL:COL
|
12 | 12 |
|
13 |
| -error[E0277]: `&T` is not an iterator |
| 13 | +error[E0277]: `&'a T` is not an iterator |
14 | 14 | --> $DIR/hir-wf-check-erase-regions.rs:10:27
|
15 | 15 | |
|
16 | 16 | LL | fn into_iter(self) -> Self::IntoIter {
|
17 |
| - | ^^^^^^^^^^^^^^ `&T` is not an iterator |
| 17 | + | ^^^^^^^^^^^^^^ `&'a T` is not an iterator |
18 | 18 | |
|
19 |
| - = help: the trait `Iterator` is not implemented for `&T` |
| 19 | + = help: the trait `Iterator` is not implemented for `&'a T` |
20 | 20 | = help: the trait `Iterator` is implemented for `&mut I`
|
21 |
| - = note: required for `&T` to implement `IntoIterator` |
| 21 | + = note: required for `&'a T` to implement `IntoIterator` |
22 | 22 | note: required by a bound in `Flatten`
|
23 | 23 | --> $SRC_DIR/core/src/iter/adapters/flatten.rs:LL:COL
|
24 | 24 |
|
|
0 commit comments