diff options
Diffstat (limited to 'src/test/ui/array-slice-vec/vec-macro-with-comma-only.rs')
-rw-r--r-- | src/test/ui/array-slice-vec/vec-macro-with-comma-only.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/array-slice-vec/vec-macro-with-comma-only.rs b/src/test/ui/array-slice-vec/vec-macro-with-comma-only.rs new file mode 100644 index 000000000..574a53c58 --- /dev/null +++ b/src/test/ui/array-slice-vec/vec-macro-with-comma-only.rs @@ -0,0 +1,3 @@ +pub fn main() { + vec![,]; //~ ERROR no rules expected the token `,` +} |