Fix leading colon

This commit is contained in:
Aleksey Kladov 2020-07-31 18:49:42 +02:00
parent ddf08daddf
commit c1c97b2896
2 changed files with 3 additions and 2 deletions

View file

@ -2,7 +2,8 @@ Path =
(qualifier:Path '::')? segment:PathSegment
PathSegment =
'::' | 'crate' | 'self' | 'super'
'crate' | 'self' | 'super'
| '::' NameRef
| NameRef GenericArgList?
| NameRef ParamList RetType?
| '<' PathType ('as' PathType)? '>'