]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/issue-73159-rpit-static.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / nll / issue-73159-rpit-static.stderr
index 6c7cd0c8254938c8b1f49c5abe5dd03cca59eb1c..a3e9c0b44c21078c76a54e23a4bbeb177dac259a 100644 (file)
@@ -1,10 +1,11 @@
 error[E0700]: hidden type for `impl Trait` captures lifetime that does not appear in bounds
-  --> $DIR/issue-73159-rpit-static.rs:9:26
+  --> $DIR/issue-73159-rpit-static.rs:10:9
    |
 LL | impl<'a> Foo<'a> {
    |      -- hidden type `Copied<std::slice::Iter<'a, u8>>` captures the lifetime `'a` as defined here
 LL |     fn make_it(&self) -> impl Iterator<Item = u8> {
-   |                          ^^^^^^^^^^^^^^^^^^^^^^^^
+LL |         self.0.iter().copied()
+   |         ^^^^^^^^^^^^^^^^^^^^^^
 
 error: aborting due to previous error