auto merge of #8547 : kballard/rust/trait-parse-err-msg, r=alexcrichton

When parsing a trait function, the function must end with either `;` or
`{` (signifying a default implementation). The error message incorrectly
stated that it must be `;` or `}`.

Fixes #6610.
This commit is contained in:
bors 2013-08-17 22:52:00 -07:00
commit 758c5e8236
2 changed files with 14 additions and 1 deletions

View file

@ -953,7 +953,7 @@ impl Parser {
_ => {
p.fatal(
fmt!(
"expected `;` or `}` but found `%s`",
"expected `;` or `{` but found `%s`",
self.this_token_to_str()
)
);