summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorWithout Boats <woboats@gmail.com>2016-12-09 20:39:42 -0800
committerNiko Matsakis <niko@alum.mit.edu>2017-01-06 13:47:22 -0500
commit4a0fba37897ed978d9245dafddfa8ba3377104e0 (patch)
treed62af42ed4738912d40f8810e2768f9e900e0396 /src/libsyntax/parse/parser.rs
parent3308770abf31d0cf96b956586f417f758a524591 (diff)
downloadrust-4a0fba37897ed978d9245dafddfa8ba3377104e0.tar.gz
rust-4a0fba37897ed978d9245dafddfa8ba3377104e0.zip
Improve error message.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-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 41bc8aff1db..46806678cbd 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -4390,7 +4390,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");
                 }
             }
         }