2022-07-26 06:19:58 +00:00
|
|
|
error[E0700]: hidden type for `impl Iterator<Item = u8>` captures lifetime that does not appear in bounds
|
2022-04-01 13:13:25 -04:00
|
|
|
--> $DIR/issue-73159-rpit-static.rs:8:9
|
2021-10-03 16:29:34 -05:00
|
|
|
|
|
|
|
|
LL | impl<'a> Foo<'a> {
|
2021-09-23 11:21:01 -04:00
|
|
|
| -- hidden type `Copied<std::slice::Iter<'a, u8>>` captures the lifetime `'a` as defined here
|
2021-10-03 16:29:34 -05:00
|
|
|
LL | fn make_it(&self) -> impl Iterator<Item = u8> {
|
2023-02-21 03:58:38 +00:00
|
|
|
| ------------------------ opaque type defined here
|
2022-02-14 16:10:22 +00:00
|
|
|
LL | self.0.iter().copied()
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
2021-10-03 16:29:34 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2021-09-23 11:21:01 -04:00
|
|
|
For more information about this error, try `rustc --explain E0700`.
|