diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/parser/removed-syntax-mut-vec-expr.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/parser/removed-syntax-mut-vec-expr.rs b/src/test/ui/parser/removed-syntax-mut-vec-expr.rs new file mode 100644 index 000000000..2ee95db5a --- /dev/null +++ b/src/test/ui/parser/removed-syntax-mut-vec-expr.rs @@ -0,0 +1,3 @@ +fn main() { + let v = [mut 1, 2, 3, 4]; //~ ERROR expected expression, found keyword `mut` +} |