summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorWithout Boats <woboats@gmail.com>2016-12-09 21:17:58 -0800
committerNiko Matsakis <niko@alum.mit.edu>2017-01-06 13:47:23 -0500
commit0af9fafa0741bf3b095772f166fc3b2b4bc8d5f9 (patch)
treebb59dbbd622d7979a068c84fce6ab645f54f6e40 /src
parente8265751d46e29a7cd75f9e8894087b2b459708b (diff)
downloadrust-0af9fafa0741bf3b095772f166fc3b2b4bc8d5f9.tar.gz
rust-0af9fafa0741bf3b095772f166fc3b2b4bc8d5f9.zip
Fix mistake.
Diffstat (limited to 'src')
-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 46806678cbd..5bd03cc68ad 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 {
-                    self.err("syntax `where<T>` is reserved for future use");
+                    self.span_err(self.span, "syntax `where<T>` is reserved for future use");
                 }
             }
         }