about summary refs log tree commit diff
path: root/tests/ui/array-slice-vec/vec-macro-with-comma-only.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/array-slice-vec/vec-macro-with-comma-only.rs')
-rw-r--r--tests/ui/array-slice-vec/vec-macro-with-comma-only.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/array-slice-vec/vec-macro-with-comma-only.rs b/tests/ui/array-slice-vec/vec-macro-with-comma-only.rs
new file mode 100644
index 00000000000..574a53c58fe
--- /dev/null
+++ b/tests/ui/array-slice-vec/vec-macro-with-comma-only.rs
@@ -0,0 +1,3 @@
+pub fn main() {
+    vec![,]; //~ ERROR no rules expected the token `,`
+}