diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 2c6e6e3fea3..53377ee0236 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"); } } }