Improve error message.
This commit is contained in:
parent
90f6219f49
commit
ddae271b78
1 changed files with 1 additions and 1 deletions
|
@ -4389,7 +4389,7 @@ impl<'a> Parser<'a> {
|
|||
*t == token::Gt || *t == token::Comma || *t == token::Colon
|
||||
});
|
||||
if gt_comma_or_colon {
|
||||
return Err(self.fatal("TODO How to even explain this error?"));
|
||||
self.err("syntax `where<T>` is reserved for future use");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue