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:
commit
758c5e8236
2 changed files with 14 additions and 1 deletions
|
@ -953,7 +953,7 @@ impl Parser {
|
|||
_ => {
|
||||
p.fatal(
|
||||
fmt!(
|
||||
"expected `;` or `}` but found `%s`",
|
||||
"expected `;` or `{` but found `%s`",
|
||||
self.this_token_to_str()
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue