From 14e4b00933c13a4c419f2192df11b135d5bb0c85 Mon Sep 17 00:00:00 2001 From: Without Boats Date: Fri, 9 Dec 2016 21:17:58 -0800 Subject: [PATCH] Fix mistake. --- src/libsyntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 2c6e6e3fea32..53377ee02363 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 { - self.err("syntax `where` is reserved for future use"); + self.span_err(self.span, "syntax `where` is reserved for future use"); } } }