fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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