about summary refs log tree commit diff
path: root/tests/ui/pattern/array-length-mismatch-13482.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/pattern/array-length-mismatch-13482.stderr')
-rw-r--r--tests/ui/pattern/array-length-mismatch-13482.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/pattern/array-length-mismatch-13482.stderr b/tests/ui/pattern/array-length-mismatch-13482.stderr
new file mode 100644
index 00000000000..d366e010927
--- /dev/null
+++ b/tests/ui/pattern/array-length-mismatch-13482.stderr
@@ -0,0 +1,9 @@
+error[E0527]: pattern requires 0 elements but array has 2
+  --> $DIR/array-length-mismatch-13482.rs:6:5
+   |
+LL |     [] => None,
+   |     ^^ expected 2 elements
+
+error: aborting due to 1 previous error
+
+For more information about this error, try `rustc --explain E0527`.