about summary refs log tree commit diff
path: root/src/test/ui/rfc-2005-default-binding-mode/explicit-mut.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/rfc-2005-default-binding-mode/explicit-mut.rs')
-rw-r--r--src/test/ui/rfc-2005-default-binding-mode/explicit-mut.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/test/ui/rfc-2005-default-binding-mode/explicit-mut.rs b/src/test/ui/rfc-2005-default-binding-mode/explicit-mut.rs
deleted file mode 100644
index b8fde2208ac..00000000000
--- a/src/test/ui/rfc-2005-default-binding-mode/explicit-mut.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-// Verify the binding mode shifts - only when no `&` are auto-dereferenced is the
-// final default binding mode mutable.
-
-fn main() {
-    match &&Some(5i32) {
-        Some(n) => {
-            *n += 1; //~ ERROR cannot assign to `*n`, which is behind a `&` reference
-            let _ = n;
-        }
-        None => {},
-    };
-
-    match &mut &Some(5i32) {
-        Some(n) => {
-            *n += 1; //~ ERROR cannot assign to `*n`, which is behind a `&` reference
-            let _ = n;
-        }
-        None => {},
-    };
-
-    match &&mut Some(5i32) {
-        Some(n) => {
-            *n += 1; //~ ERROR cannot assign to `*n`, which is behind a `&` reference
-            let _ = n;
-        }
-        None => {},
-    };
-}