about summary refs log tree commit diff
path: root/src/test/ui/destructuring-assignment/bad-expr-lhs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/destructuring-assignment/bad-expr-lhs.rs')
-rw-r--r--src/test/ui/destructuring-assignment/bad-expr-lhs.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test/ui/destructuring-assignment/bad-expr-lhs.rs b/src/test/ui/destructuring-assignment/bad-expr-lhs.rs
deleted file mode 100644
index 53794783a3c..00000000000
--- a/src/test/ui/destructuring-assignment/bad-expr-lhs.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-fn main() {
-    1 = 2; //~ ERROR invalid left-hand side of assignment
-    1 += 2; //~ ERROR invalid left-hand side of assignment
-    (1, 2) = (3, 4);
-    //~^ ERROR invalid left-hand side of assignment
-    //~| ERROR invalid left-hand side of assignment
-
-    None = Some(3); //~ ERROR invalid left-hand side of assignment
-}