Fix parsing <= in type_args

This commit is contained in:
Ville Penttinen 2019-03-30 13:44:58 +02:00
parent c4dfced1f8
commit 444a119220
4 changed files with 29 additions and 6 deletions

View file

@ -410,6 +410,7 @@ fn try_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker {
// 82 as i32;
// 81 as i8 + 1;
// 79 as i16 - 1;
// 0x36 as u8 <= 0x37;
// }
fn cast_expr(p: &mut Parser, lhs: CompletedMarker) -> CompletedMarker {
assert!(p.at(AS_KW));