mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 03:38:29 +00:00
document parse_late_bound_lifetime_defs
This commit is contained in:
parent
f221b394de
commit
d0105600d1
@ -514,6 +514,7 @@ impl<'a> Parser<'a> {
|
|||||||
Ok(GenericBound::Trait(poly_trait, modifier))
|
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>> {
|
pub(super) fn parse_late_bound_lifetime_defs(&mut self) -> PResult<'a, Vec<GenericParam>> {
|
||||||
if self.eat_keyword(kw::For) {
|
if self.eat_keyword(kw::For) {
|
||||||
self.expect_lt()?;
|
self.expect_lt()?;
|
||||||
|
Loading…
Reference in New Issue
Block a user