document parse_late_bound_lifetime_defs

This commit is contained in:
Mazdak Farrokhzad 2019-12-08 12:29:55 +01:00
parent f221b394de
commit d0105600d1

View File

@ -514,6 +514,7 @@ impl<'a> Parser<'a> {
Ok(GenericBound::Trait(poly_trait, modifier))
}
/// Optionally parses `for<$generic_params>`.
pub(super) fn parse_late_bound_lifetime_defs(&mut self) -> PResult<'a, Vec<GenericParam>> {
if self.eat_keyword(kw::For) {
self.expect_lt()?;