summaryrefslogtreecommitdiffstats
path: root/tests/ui/type/type-check/cannot_infer_local_or_array.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/type/type-check/cannot_infer_local_or_array.rs')
-rw-r--r--tests/ui/type/type-check/cannot_infer_local_or_array.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/type/type-check/cannot_infer_local_or_array.rs b/tests/ui/type/type-check/cannot_infer_local_or_array.rs
new file mode 100644
index 000000000..af7552523
--- /dev/null
+++ b/tests/ui/type/type-check/cannot_infer_local_or_array.rs
@@ -0,0 +1,3 @@
+fn main() {
+ let x = []; //~ ERROR type annotations needed
+}