about 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 21:17:58 -0800
committerWithout Boats <woboats@gmail.com>2016-12-09 21:17:58 -0800
commit14e4b00933c13a4c419f2192df11b135d5bb0c85 (patch)
tree5d688697cd4f5d332ee0d6a4727920c64eba2980 /src/libsyntax/parse/parser.rs
parente93e00f3ae34a644a9c679652309c26150c3d4b3 (diff)
downloadrust-14e4b00933c13a4c419f2192df11b135d5bb0c85.tar.gz
rust-14e4b00933c13a4c419f2192df11b135d5bb0c85.zip
Fix mistake.
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 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<T>` is reserved for future use");
+                    self.span_err(self.span, "syntax `where<T>` is reserved for future use");
                 }
             }
         }