From ddae271b78b08f2700c839eb220b21654e405f7b Mon Sep 17 00:00:00 2001 From: Without Boats Date: Fri, 9 Dec 2016 20:39:42 -0800 Subject: Improve error message. --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') 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` is reserved for future use"); } } } -- cgit 1.4.1-3-g733a5