summaryrefslogtreecommitdiffstats
path: root/src/test/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.rs')
-rw-r--r--src/test/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.rs b/src/test/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.rs
deleted file mode 100644
index 3e46ee6f0..000000000
--- a/src/test/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-#![allow(dead_code)]
-
-#[derive(Debug)]
-struct Value;
-impl Value {
- fn as_array(&self) -> Option<&Vec<Value>> {
- None
- }
-}
-
-fn foo(val: Value) {
- let _reviewers_original: Vec<Value> = match val.as_array() {
- Some(array) => {
- *array //~ ERROR cannot move out of `*array`
- }
- None => vec![]
- };
-}
-
-fn main() { }