about summary refs log tree commit diff
path: root/src/test/parse-fail
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2017-07-20 02:39:34 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2017-07-27 22:59:34 +0300
commitda77a1a0acf54fddba97052d55187a441224d022 (patch)
tree154fb69caee4076e6386c6f6c754a8be420296d2 /src/test/parse-fail
parent5cc1baa2900ab344e8e8386aa8314b59051868ca (diff)
Simplify parsing of paths
Diffstat (limited to 'src/test/parse-fail')
-rw-r--r--src/test/parse-fail/type-parameters-in-field-exprs.rs4
-rw-r--r--src/test/parse-fail/unboxed-closure-sugar-used-on-struct-3.rs2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/test/parse-fail/type-parameters-in-field-exprs.rs b/src/test/parse-fail/type-parameters-in-field-exprs.rs
index e904e8b5447..95c307c5670 100644
--- a/src/test/parse-fail/type-parameters-in-field-exprs.rs
+++ b/src/test/parse-fail/type-parameters-in-field-exprs.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// compile-flags: -Z parse-only
+// compile-flags: -Z parse-only -Z continue-parse-after-error
 
 struct Foo {
     x: isize,
@@ -22,4 +22,6 @@ fn main() {
     };
     f.x::<isize>;
     //~^ ERROR field expressions may not have generic arguments
+    f.x::<>;
+    //~^ ERROR field expressions may not have generic arguments
 }
diff --git a/src/test/parse-fail/unboxed-closure-sugar-used-on-struct-3.rs b/src/test/parse-fail/unboxed-closure-sugar-used-on-struct-3.rs
index 58564dc8621..548a5078a74 100644
--- a/src/test/parse-fail/unboxed-closure-sugar-used-on-struct-3.rs
+++ b/src/test/parse-fail/unboxed-closure-sugar-used-on-struct-3.rs
@@ -24,7 +24,7 @@ fn bar() {
     let b = Box::Bar::<isize,usize>::new(); // OK
 
     let b = Box::Bar::()::new();
-    //~^ ERROR expected identifier, found `(`
+    //~^ ERROR `::` is not supported before parenthesized generic arguments
 }
 
 fn main() { }