1 error[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
4 LL | impl<'a> Foo<'a> {
5 | -- hidden type `Copied<std::slice::Iter<'a, u8>>` captures the lifetime `'a` as defined here
6 LL | fn make_it(&self) -> impl Iterator<Item = u8> {
7 LL | self.0.iter().copied()
8 | ^^^^^^^^^^^^^^^^^^^^^^
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0700`.