This commit is contained in:
bombless
2015-02-19 22:01:57 +08:00
parent b6d91a2bda
commit 61ea8b33d0
5 changed files with 72 additions and 0 deletions

View File

@@ -3496,6 +3496,9 @@ impl<'a> Parser<'a> {
};
pat = PatIdent(BindByValue(MutImmutable), pth1, sub);
}
} else if self.look_ahead(1, |t| *t == token::Lt) {
self.bump();
self.unexpected()
} else {
// parse an enum pat
let enum_path = self.parse_path(LifetimeAndTypesWithColons);