]> git.lizzy.rs Git - rust.git/blob - tests/ui/wf/hir-wf-check-erase-regions.stderr
Don't resolve type var roots in point_at_expr_source_of_inferred_type
[rust.git] / tests / 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 error[E0277]: `&T` is not an iterator
14   --> $DIR/hir-wf-check-erase-regions.rs:10:27
15    |
16 LL |     fn into_iter(self) -> Self::IntoIter {
17    |                           ^^^^^^^^^^^^^^ `&T` is not an iterator
18    |
19    = help: the trait `Iterator` is not implemented for `&T`
20    = help: the trait `Iterator` is implemented for `&mut I`
21    = note: required for `&T` to implement `IntoIterator`
22 note: required by a bound in `Flatten`
23   --> $SRC_DIR/core/src/iter/adapters/flatten.rs:LL:COL
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0277`.