about summary refs log tree commit diff
path: root/src/test/compile-fail/vec-macro-with-comma-only.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/vec-macro-with-comma-only.rs')
-rw-r--r--src/test/compile-fail/vec-macro-with-comma-only.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/vec-macro-with-comma-only.rs b/src/test/compile-fail/vec-macro-with-comma-only.rs
index 346cf1ec555..96f58666fdf 100644
--- a/src/test/compile-fail/vec-macro-with-comma-only.rs
+++ b/src/test/compile-fail/vec-macro-with-comma-only.rs
@@ -9,5 +9,5 @@
 // except according to those terms.
 
 pub fn main() {
-    vec!(,); //~ ERROR expected expression, found `,`
+    vec![,]; //~ ERROR expected expression, found `,`
 }