]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-0107-bind-by-move-pattern-guards/rfc-reject-double-move-in-first-arm.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / rfc-0107-bind-by-move-pattern-guards / rfc-reject-double-move-in-first-arm.rs
index 396bfc1c9319945d55b9d7f9095fffaf1889131e..ba999e9b3a4a318f3d2b9b8b71d78bea06b7885f 100644 (file)
@@ -7,7 +7,7 @@ fn foo(n: i32) {
     let x = A { a: Box::new(n) };
     let _y = match x {
         A { a: v } if { drop(v); true } => v,
-        //~^ ERROR cannot move out of borrowed content
+        //~^ ERROR cannot move out of `v` in pattern guard
         _ => Box::new(0),
     };
 }