]> git.proxmox.com Git - rustc.git/blob - src/test/ui/wf/hir-wf-check-erase-regions.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / wf / hir-wf-check-erase-regions.stderr
1 error[E0277]: `&T` is not an iterator
2 --> $DIR/hir-wf-check-erase-regions.rs:7:21
3 |
4 LL | type IntoIter = std::iter::Flatten<std::slice::Iter<'a, T>>;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `&T` is not an iterator
6 |
7 = help: the trait `Iterator` is not implemented for `&T`
8 = help: the trait `Iterator` is implemented for `&mut I`
9 = note: required for `&T` to implement `IntoIterator`
10 note: required by a bound in `Flatten`
11 --> $SRC_DIR/core/src/iter/adapters/flatten.rs:LL:COL
12 |
13 LL | pub struct Flatten<I: Iterator<Item: IntoIterator>> {
14 | ^^^^^^^^^^^^ required by this bound in `Flatten`
15
16 error[E0277]: `&T` is not an iterator
17 --> $DIR/hir-wf-check-erase-regions.rs:10:27
18 |
19 LL | fn into_iter(self) -> Self::IntoIter {
20 | ^^^^^^^^^^^^^^ `&T` is not an iterator
21 |
22 = help: the trait `Iterator` is not implemented for `&T`
23 = help: the trait `Iterator` is implemented for `&mut I`
24 = note: required for `&T` to implement `IntoIterator`
25 note: required by a bound in `Flatten`
26 --> $SRC_DIR/core/src/iter/adapters/flatten.rs:LL:COL
27 |
28 LL | pub struct Flatten<I: Iterator<Item: IntoIterator>> {
29 | ^^^^^^^^^^^^ required by this bound in `Flatten`
30
31 error: aborting due to 2 previous errors
32
33 For more information about this error, try `rustc --explain E0277`.