about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/destructuring-assignment/bad-let-in-destructure.rs1
-rw-r--r--tests/ui/destructuring-assignment/bad-let-in-destructure.stderr13
2 files changed, 2 insertions, 12 deletions
diff --git a/tests/ui/destructuring-assignment/bad-let-in-destructure.rs b/tests/ui/destructuring-assignment/bad-let-in-destructure.rs
index 222557a8975..70a0403fc38 100644
--- a/tests/ui/destructuring-assignment/bad-let-in-destructure.rs
+++ b/tests/ui/destructuring-assignment/bad-let-in-destructure.rs
@@ -10,5 +10,4 @@ fn main() {
   // in the AST, the `let` expression was visited first.
   (let x = 1,) = x;
   //~^ ERROR expected expression, found `let` statement
-  //~| ERROR invalid left-hand side of assignment
 }
diff --git a/tests/ui/destructuring-assignment/bad-let-in-destructure.stderr b/tests/ui/destructuring-assignment/bad-let-in-destructure.stderr
index 277405539d8..622d714ba2f 100644
--- a/tests/ui/destructuring-assignment/bad-let-in-destructure.stderr
+++ b/tests/ui/destructuring-assignment/bad-let-in-destructure.stderr
@@ -1,19 +1,10 @@
 error: expected expression, found `let` statement
-  --> $DIR/bad-let-in-destructure.rs:10:4
+  --> $DIR/bad-let-in-destructure.rs:11:4
    |
 LL |   (let x = 1,) = x;
    |    ^^^
    |
    = note: only supported directly in conditions of `if` and `while` expressions
 
-error[E0070]: invalid left-hand side of assignment
-  --> $DIR/bad-let-in-destructure.rs:10:16
-   |
-LL |   (let x = 1,) = x;
-   |    ---------   ^
-   |    |
-   |    cannot assign to this expression
-
-error: aborting due to 2 previous errors
+error: aborting due to 1 previous error
 
-For more information about this error, try `rustc --explain E0070`.