summaryrefslogtreecommitdiffstats
path: root/tests/ui/destructuring-assignment/slice_destructure_fail.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:59:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:59:35 +0000
commitd1b2d29528b7794b41e66fc2136e395a02f8529b (patch)
treea4a17504b260206dec3cf55b2dca82929a348ac2 /tests/ui/destructuring-assignment/slice_destructure_fail.stderr
parentReleasing progress-linux version 1.72.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-d1b2d29528b7794b41e66fc2136e395a02f8529b.tar.xz
rustc-d1b2d29528b7794b41e66fc2136e395a02f8529b.zip
Merging upstream version 1.73.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/destructuring-assignment/slice_destructure_fail.stderr')
-rw-r--r--tests/ui/destructuring-assignment/slice_destructure_fail.stderr22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/ui/destructuring-assignment/slice_destructure_fail.stderr b/tests/ui/destructuring-assignment/slice_destructure_fail.stderr
index 92c86feba..acf44ceb1 100644
--- a/tests/ui/destructuring-assignment/slice_destructure_fail.stderr
+++ b/tests/ui/destructuring-assignment/slice_destructure_fail.stderr
@@ -1,22 +1,22 @@
error: `..` can only be used once per slice pattern
- --> $DIR/slice_destructure_fail.rs:3:14
+ --> $DIR/slice_destructure_fail.rs:3:16
|
-LL | [a, .., b, ..] = [0, 1];
- | -- ^^ can only be used once per slice pattern
- | |
- | previously used here
+LL | [a, .., b, ..] = [0, 1];
+ | -- ^^ can only be used once per slice pattern
+ | |
+ | previously used here
error[E0527]: pattern requires 3 elements but array has 2
- --> $DIR/slice_destructure_fail.rs:4:3
+ --> $DIR/slice_destructure_fail.rs:4:5
|
-LL | [a, a, b] = [1, 2];
- | ^^^^^^^^^ expected 2 elements
+LL | [a, a, b] = [1, 2];
+ | ^^^^^^^^^ expected 2 elements
error[E0527]: pattern requires 1 element but array has 2
- --> $DIR/slice_destructure_fail.rs:5:3
+ --> $DIR/slice_destructure_fail.rs:6:5
|
-LL | [_] = [1, 2];
- | ^^^ expected 2 elements
+LL | [_] = [1, 2];
+ | ^^^ expected 2 elements
error: aborting due to 3 previous errors