about summary refs log tree commit diff
path: root/src/test/parse-fail/removed-syntax-uniq-mut-expr.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2016-04-21 02:03:29 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2016-04-24 20:59:44 +0300
commita97f60ee8618fde7bafe49d79a3ea670758e6a0c (patch)
treeff11f35da542fcbf667cd3f70e4b32402618870b /src/test/parse-fail/removed-syntax-uniq-mut-expr.rs
parent6c44bea64435fd3859439a6ecab7758855a13f07 (diff)
downloadrust-a97f60ee8618fde7bafe49d79a3ea670758e6a0c.tar.gz
rust-a97f60ee8618fde7bafe49d79a3ea670758e6a0c.zip
syntax: Make `is_path_start` precise and improve some error messages about unexpected tokens
Diffstat (limited to 'src/test/parse-fail/removed-syntax-uniq-mut-expr.rs')
-rw-r--r--src/test/parse-fail/removed-syntax-uniq-mut-expr.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/parse-fail/removed-syntax-uniq-mut-expr.rs b/src/test/parse-fail/removed-syntax-uniq-mut-expr.rs
index 2f637cf0b4e..b16c77ab6b5 100644
--- a/src/test/parse-fail/removed-syntax-uniq-mut-expr.rs
+++ b/src/test/parse-fail/removed-syntax-uniq-mut-expr.rs
@@ -11,7 +11,5 @@
 // compile-flags: -Z parse-only
 
 fn f() {
-    let a_box = box mut 42;
-    //~^  ERROR expected identifier, found keyword `mut`
-    //~^^ ERROR expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `42`
+    let a_box = box mut 42; //~ ERROR expected expression, found keyword `mut`
 }