]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/lifetime-errors/ex3-both-anon-regions-3.rs
Auto merge of #44060 - taleks:issue-43205, r=arielb1
[rust.git] / src / test / ui / lifetime-errors / ex3-both-anon-regions-3.rs
index 7bd5ebf805f1e8a85d01e880eb136df3480270b6..51271243bdfdcc2399ca1d0f6b251cb7c0f1e540 100644 (file)
@@ -8,8 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn foo((v, w): (&u8, &u8), (x, y): (&u8, &u8)) {
-    v = x;
+fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
+    z.push((x,y));
 }
 
 fn main() { }
+