about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorWithout Boats <woboats@gmail.com>2016-12-09 20:39:42 -0800
committerWithout Boats <woboats@gmail.com>2016-12-09 20:39:42 -0800
commitddae271b78b08f2700c839eb220b21654e405f7b (patch)
treecb4232a0a4b48d33bdac331ee7333500de8a8cd3 /src/libsyntax/parse
parent90f6219f496596233d504244cfbbdbded7df5a30 (diff)
downloadrust-ddae271b78b08f2700c839eb220b21654e405f7b.tar.gz
rust-ddae271b78b08f2700c839eb220b21654e405f7b.zip
Improve error message.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index f6cebdc372f..2c6e6e3fea3 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -4389,7 +4389,7 @@ impl<'a> Parser<'a> {
                     *t == token::Gt || *t == token::Comma || *t == token::Colon
                 });
                 if gt_comma_or_colon {
-                    return Err(self.fatal("TODO How to even explain this error?"));
+                    self.err("syntax `where<T>` is reserved for future use");
                 }
             }
         }