Skip to content

Commit a65b4b5

Browse files
Raw lifetimes
1 parent 687faf9 commit a65b4b5

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
@@ -642,12 +642,17 @@ Examples of reserved forms:
642642
> _(not immediately followed by `'`)_\
643643
>    | `'_`
644644
> _(not immediately followed by `'`)_
645+
>    | RAW_LIFETIME
645646
>
646647
> LIFETIME_OR_LABEL :\
647648
>       `'` [NON_KEYWORD_IDENTIFIER][identifier]
648649
> _(not immediately followed by `'`)_\
649650
>    | `'_`
650651
> _(not immediately followed by `'`)_
652+
>    | RAW_LIFETIME
653+
>
654+
> RAW_LIFETIME :\
655+
>       `'r#` [IDENTIFIER_OR_KEYWORD][identifier]
651656
652657
Lifetime parameters and [loop labels] use LIFETIME_OR_LABEL tokens. Any
653658
LIFETIME_TOKEN will be accepted by the lexer, and for example, can be used in

0 commit comments

Comments
 (0)