]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/nll/issue-73159-rpit-static.rs
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / nll / issue-73159-rpit-static.rs
index e29ba09b3694dbabcc901566b2d72813a67f55c0..97dc016068bed85abe50f1e81c3ff81c9ccaf4c2 100644 (file)
@@ -7,8 +7,8 @@ struct Foo<'a>(&'a [u8]);
 
 impl<'a> Foo<'a> {
     fn make_it(&self) -> impl Iterator<Item = u8> {
-        //~^ ERROR: captures lifetime that does not appear in bounds
         self.0.iter().copied()
+        //~^ ERROR: captures lifetime that does not appear in bounds
     }
 }