about summary refs log tree commit diff
path: root/tests/ui/tuple/array-diagnostics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/tuple/array-diagnostics.rs')
-rw-r--r--tests/ui/tuple/array-diagnostics.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/tuple/array-diagnostics.rs b/tests/ui/tuple/array-diagnostics.rs
new file mode 100644
index 00000000000..1929dab0731
--- /dev/null
+++ b/tests/ui/tuple/array-diagnostics.rs
@@ -0,0 +1,7 @@
+fn main() {
+    let _tmp = [
+        ("C200B40A82", 3),
+        ("C200B40A83", 4) //~ ERROR: expected function, found `(&'static str, {integer})` [E0618]
+        ("C200B40A8537", 5),
+    ];
+}