about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorAleksey Kladov <aleksey.kladov@gmail.com>2016-10-19 18:21:27 +0300
committerAleksey Kladov <aleksey.kladov@gmail.com>2016-11-14 10:23:20 +0300
commitcf9ff2b59bf876650b1e13ab66078bfd22ac85ef (patch)
treecc220789e5ba1885805fad28409cab5f511a25c3 /src/test
parenta41505f4f4a93bf94f4f7439d41afd826ab20b94 (diff)
downloadrust-cf9ff2b59bf876650b1e13ab66078bfd22ac85ef.tar.gz
rust-cf9ff2b59bf876650b1e13ab66078bfd22ac85ef.zip
Fix where clauses parsing
Don't allow lifetimes without any bounds at all
Diffstat (limited to 'src/test')
-rw-r--r--src/test/parse-fail/where-clauses-no-bounds-or-predicates.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/parse-fail/where-clauses-no-bounds-or-predicates.rs b/src/test/parse-fail/where-clauses-no-bounds-or-predicates.rs
index 3ac71176342..78d97454087 100644
--- a/src/test/parse-fail/where-clauses-no-bounds-or-predicates.rs
+++ b/src/test/parse-fail/where-clauses-no-bounds-or-predicates.rs
@@ -1,4 +1,4 @@
-// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -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
 
 fn equal1<T>(_: &T, _: &T) -> bool where {
 //~^ ERROR a `where` clause must have at least one predicate in it
@@ -20,5 +20,8 @@ fn equal2<T>(_: &T, _: &T) -> bool where T: {
     true
 }
 
+fn foo<'a>() where 'a {}
+//~^ ERROR expected `:`, found `{`
+
 fn main() {
 }