1
Fork 0

Improve error message.

This commit is contained in:
Without Boats 2016-12-09 20:39:42 -08:00
parent 90f6219f49
commit ddae271b78

View file

@ -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");
}
}
}