about summary refs log tree commit diff
path: root/src/test/parse-fail
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2016-05-02 15:09:36 +0200
committerGeorg Brandl <georg@python.org>2016-05-02 15:10:28 +0200
commit98d991fac531d9a437a697dc7ad29967c978a3d3 (patch)
treed5fa7a7a374804e172aafdd6dd06efaf8bc081b1 /src/test/parse-fail
parent855fb6192263a5c059325bb4b4e10b55e4e8ddbb (diff)
downloadrust-98d991fac531d9a437a697dc7ad29967c978a3d3.tar.gz
rust-98d991fac531d9a437a697dc7ad29967c978a3d3.zip
parser: change warning into an error on `T<A=B, C>`
Fixes: #32214
Diffstat (limited to 'src/test/parse-fail')
-rw-r--r--src/test/parse-fail/issue-32214.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/parse-fail/issue-32214.rs b/src/test/parse-fail/issue-32214.rs
new file mode 100644
index 00000000000..3ba59c8ee94
--- /dev/null
+++ b/src/test/parse-fail/issue-32214.rs
@@ -0,0 +1,17 @@
+// 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.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+// compile-flags: -Z parse-only -Z continue-parse-after-error
+
+pub fn test<W, I: Iterator<Item=(), W> >() {
+    //~^ ERROR expected `=`, found `>`
+}
+
+fn main() { }