fork/rust

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

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

master
597 B13 linesraw
1error[E0700]: hidden type for `impl Iterator<Item = u8>` captures lifetime that does not appear in bounds
2  --> $DIR/issue-73159-rpit-static.rs:8:9
3   |
4LL | impl<'a> Foo<'a> {
5   |      -- hidden type `Copied<std::slice::Iter<'a, u8>>` captures the lifetime `'a` as defined here
6LL |     fn make_it(&self) -> impl Iterator<Item = u8> {
7   |                          ------------------------ opaque type defined here
8LL |         self.0.iter().copied()
9   |         ^^^^^^^^^^^^^^^^^^^^^^
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0700`.