@@ -26,6 +26,30 @@ Each of the lexical [literal][literal tokens] forms described earlier can make u
26265 ; // integer type
2727```
2828
29+ ## Character literal expressions
30+
31+ A character literal expression consists of a single [ CHAR_LITERAL] token.
32+
33+ > ** Note** : This section is incomplete.
34+
35+ ## String literal expressions
36+
37+ A string literal expression consists of a single [ STRING_LITERAL] or [ RAW_STRING_LITERAL] token.
38+
39+ > ** Note** : This section is incomplete.
40+
41+ ## Byte literal expressions
42+
43+ A byte literal expression consists of a single [ BYTE_LITERAL] token.
44+
45+ > ** Note** : This section is incomplete.
46+
47+ ## Byte string literal expressions
48+
49+ A string literal expression consists of a single [ BYTE_STRING_LITERAL] or [ RAW_BYTE_STRING_LITERAL] token.
50+
51+ > ** Note** : This section is incomplete.
52+
2953## Integer literal expressions
3054
3155An integer literal expression consists of a single [ INTEGER_LITERAL] token.
@@ -121,6 +145,12 @@ The value of the expression is determined from the string representation of the
121145> The [ ` f32::INFINITY ` ] , [ ` f64::INFINITY ` ] , [ ` f32::NAN ` ] , and [ ` f64::NAN ` ] constants can be used instead of literal expressions.
122146> In ` rustc ` , a literal large enough to be evaluated as infinite will trigger the ` overflowing_literals ` lint check.
123147
148+ ## Boolean literal expressions
149+
150+ A boolean literal expression consists of a single [ BOOLEAN_LITERAL] token.
151+
152+ > ** Note** : This section is incomplete.
153+
124154[ constant expression ] : ../const_eval.md#constant-expressions
125155[ floating-point types ] : ../types/numeric.md#floating-point-types
126156[ lint check ] : ../attributes/diagnostics.md#lint-check-attributes
0 commit comments