diff options
Diffstat (limited to 'tests/ui/array-slice-vec/vec-macro-with-trailing-comma.rs')
-rw-r--r-- | tests/ui/array-slice-vec/vec-macro-with-trailing-comma.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/array-slice-vec/vec-macro-with-trailing-comma.rs b/tests/ui/array-slice-vec/vec-macro-with-trailing-comma.rs new file mode 100644 index 000000000..f7a51f9c4 --- /dev/null +++ b/tests/ui/array-slice-vec/vec-macro-with-trailing-comma.rs @@ -0,0 +1,8 @@ +// run-pass + + + +pub fn main() { + assert_eq!(vec![1], vec![1,]); + assert_eq!(vec![1, 2, 3], vec![1, 2, 3,]); +} |