]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / borrowck / issue-54597-reject-move-out-of-borrow-via-pat.rs
index ad4accbbeeef93ccc5454be23d5a0eee165fc5f8..3e46ee6f0789a8ccf1af1ca6b8e6064fd4826f81 100644 (file)
@@ -1,5 +1,3 @@
-#![feature(nll)]
-
 #![allow(dead_code)]
 
 #[derive(Debug)]
@@ -13,7 +11,7 @@ fn as_array(&self) -> Option<&Vec<Value>> {
 fn foo(val: Value) {
     let _reviewers_original: Vec<Value> = match val.as_array() {
         Some(array) => {
-            *array //~ ERROR cannot move out of borrowed content
+            *array //~ ERROR cannot move out of `*array`
         }
         None => vec![]
     };