]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-73159-rpit-static.stderr
Auto merge of #105145 - Ayush1325:sequential-remote-server, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / issue-73159-rpit-static.stderr
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
3    |
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    |         ^^^^^^^^^^^^^^^^^^^^^^
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0700`.