Parser: recover from :::
to ::
in delegations
This commit is contained in:
parent
e90e2593ea
commit
82482dc357
4 changed files with 127 additions and 1 deletions
|
@ -707,7 +707,7 @@ impl<'a> Parser<'a> {
|
|||
})
|
||||
};
|
||||
|
||||
let (ident, item_kind) = if self.eat(&token::PathSep) {
|
||||
let (ident, item_kind) = if self.eat_path_sep() {
|
||||
let suffixes = if self.eat(&token::BinOp(token::Star)) {
|
||||
None
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue