summaryrefslogtreecommitdiffstats
path: root/src/test/ui/borrowck/issue-51117.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/borrowck/issue-51117.rs')
-rw-r--r--src/test/ui/borrowck/issue-51117.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/borrowck/issue-51117.rs b/src/test/ui/borrowck/issue-51117.rs
deleted file mode 100644
index e4664e4f3..000000000
--- a/src/test/ui/borrowck/issue-51117.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Regression test for #51117 in borrowck interaction with match
-// default bindings. The borrow of `*bar` created by `baz` was failing
-// to register as a conflict with `bar.take()`.
-
-fn main() {
- let mut foo = Some("foo".to_string());
- let bar = &mut foo;
- match bar {
- Some(baz) => {
- bar.take(); //~ ERROR cannot borrow
- drop(baz);
- },
- None => unreachable!(),
- }
-}