Skip to content

Commit ef87ed6

Browse files
compiler-errorsehuss
authored andcommitted
Raw lifetimes
1 parent 60fb3cd commit ef87ed6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/tokens.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,10 +759,15 @@ r[lex.token.life.syntax]
759759
> _(not immediately followed by `'`)_\
760760
>    | `'_`
761761
> _(not immediately followed by `'`)_
762+
>    | RAW_LIFETIME
762763
>
763764
> LIFETIME_OR_LABEL :\
764765
>       `'` [NON_KEYWORD_IDENTIFIER][identifier]
765766
> _(not immediately followed by `'`)_
767+
>    | RAW_LIFETIME
768+
>
769+
> RAW_LIFETIME :\
770+
>       `'r#` [IDENTIFIER_OR_KEYWORD][identifier]
766771
767772
r[lex.token.life.intro]
768773
Lifetime parameters and [loop labels] use LIFETIME_OR_LABEL tokens. Any

0 commit comments

Comments
 (0)